|
8 | 8 | pull_request: {} |
9 | 9 |
|
10 | 10 | concurrency: |
11 | | - group: ci-${{ github.head_ref || github.ref }} |
12 | | - cancel-in-progress: true |
| 11 | + group: ci-${{ github.head_ref || github.ref }} |
| 12 | + cancel-in-progress: true |
13 | 13 |
|
14 | 14 | jobs: |
15 | | - test: |
16 | | - name: "Tests" |
| 15 | + lint: |
| 16 | + name: "Lints" |
17 | 17 | runs-on: ubuntu-latest |
| 18 | + timeout-minutes: 10 |
18 | 19 |
|
19 | 20 | steps: |
20 | | - - uses: actions/checkout@v3 |
21 | | - - uses: wyvox/action-setup-pnpm@v2 |
| 21 | + - uses: actions/checkout@v4 |
| 22 | + - uses: pnpm/action-setup@v4 |
| 23 | + - uses: actions/setup-node@v4 |
22 | 24 | with: |
23 | | - node-version: 16 |
| 25 | + node-version: 22 |
| 26 | + cache: pnpm |
| 27 | + - name: Install Dependencies |
| 28 | + run: pnpm install --frozen-lockfile |
24 | 29 | - name: Lint |
25 | 30 | run: pnpm lint |
| 31 | + |
| 32 | + test: |
| 33 | + name: "Tests" |
| 34 | + runs-on: ubuntu-latest |
| 35 | + timeout-minutes: 10 |
| 36 | + outputs: |
| 37 | + matrix: ${{ steps.set-matrix.outputs.matrix }} |
| 38 | + |
| 39 | + steps: |
| 40 | + - uses: actions/checkout@v4 |
| 41 | + - uses: pnpm/action-setup@v4 |
| 42 | + - uses: actions/setup-node@v4 |
| 43 | + with: |
| 44 | + node-version: 22 |
| 45 | + cache: pnpm |
| 46 | + - name: Install Dependencies |
| 47 | + run: pnpm install --frozen-lockfile |
26 | 48 | - name: Run Tests |
27 | 49 | run: pnpm test |
| 50 | + # For the Try Scenarios |
| 51 | + - id: set-matrix |
| 52 | + run: | |
| 53 | + echo "matrix=$(pnpm -s dlx @embroider/try list)" >> $GITHUB_OUTPUT |
| 54 | + |
28 | 55 |
|
29 | 56 | floating: |
30 | 57 | name: "Floating Dependencies" |
31 | 58 | runs-on: ubuntu-latest |
| 59 | + timeout-minutes: 10 |
32 | 60 |
|
33 | 61 | steps: |
34 | | - - uses: actions/checkout@v3 |
35 | | - - uses: wyvox/action-setup-pnpm@v2 |
| 62 | + - uses: actions/checkout@v4 |
| 63 | + - uses: pnpm/action-setup@v4 |
| 64 | + - uses: actions/setup-node@v4 |
36 | 65 | with: |
37 | | - node-version: 16 |
| 66 | + node-version: 22 |
| 67 | + cache: pnpm |
| 68 | + - name: Install Dependencies |
| 69 | + run: pnpm install --no-lockfile |
38 | 70 | - name: Run Tests |
39 | 71 | run: pnpm test |
40 | 72 |
|
41 | 73 | try-scenarios: |
42 | | - name: ${{ matrix.try-scenario }} |
| 74 | + name: ${{ matrix.name }} |
43 | 75 | runs-on: ubuntu-latest |
44 | | - needs: 'test' |
45 | | - |
| 76 | + needs: "test" |
| 77 | + timeout-minutes: 10 |
46 | 78 | strategy: |
47 | 79 | fail-fast: false |
48 | | - matrix: |
49 | | - try-scenario: |
50 | | - - ember-lts-3.28 |
51 | | - - ember-lts-4.12 |
52 | | - - ember-release |
53 | | - - ember-beta |
54 | | - - ember-canary |
| 80 | + matrix: ${{fromJson(needs.test.outputs.matrix)}} |
55 | 81 |
|
56 | 82 | steps: |
57 | | - - uses: actions/checkout@v3 |
58 | | - - uses: wyvox/action-setup-pnpm@v2 |
| 83 | + - uses: actions/checkout@v4 |
| 84 | + - uses: pnpm/action-setup@v4 |
| 85 | + - uses: actions/setup-node@v4 |
59 | 86 | with: |
60 | | - node-version: 16 |
| 87 | + node-version: 22 |
| 88 | + cache: pnpm |
| 89 | + - name: Apply Scenario |
| 90 | + run: | |
| 91 | + pnpm dlx @embroider/try apply ${{ matrix.name }} |
| 92 | + |
| 93 | + - name: Install Dependencies |
| 94 | + run: pnpm install --no-lockfile |
61 | 95 | - name: Run Tests |
62 | | - run: ./node_modules/.bin/ember try:one ${{ matrix.try-scenario }} |
63 | | - working-directory: test-app |
| 96 | + run: | |
| 97 | + pnpm test |
| 98 | + |
| 99 | + env: ${{ matrix.env }} |
0 commit comments