@@ -13,7 +13,7 @@ concurrency:
1313
1414jobs :
1515 lint :
16- name : Lint
16+ name : " Lints "
1717 runs-on : ubuntu-latest
1818 timeout-minutes : 10
1919
@@ -22,101 +22,78 @@ jobs:
2222 - uses : pnpm/action-setup@v4
2323 - uses : actions/setup-node@v4
2424 with :
25- node-version : 20.x
25+ node-version : 22
2626 cache : pnpm
27-
28- - name : ' Install dependencies'
27+ - name : Install Dependencies
2928 run : pnpm install --frozen-lockfile
30-
31- - run : pnpm build
32- - run : pnpm i -f # re-sync injected deps
33-
3429 - name : Lint
35- run : pnpm --filter ember-power-calendar lint
30+ run : pnpm lint
3631
3732 test :
3833 name : " Tests"
3934 runs-on : ubuntu-latest
40- needs : lint
35+ timeout-minutes : 10
36+ outputs :
37+ matrix : ${{ steps.set-matrix.outputs.matrix }}
4138
4239 steps :
4340 - uses : actions/checkout@v4
4441 - uses : pnpm/action-setup@v4
45-
46- - name : Install Node
47- uses : actions/setup-node@v4
42+ - uses : actions/setup-node@v4
4843 with :
49- node-version : 20.x
44+ node-version : 22
5045 cache : pnpm
51-
5246 - name : Install Dependencies
5347 run : pnpm install --frozen-lockfile
54-
55- - run : pnpm build
56- - run : pnpm i -f # re-sync injected deps
57-
5848 - name : Run Tests
59- run : pnpm --filter test-app test:ember
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+
6055
6156 floating :
6257 name : " Floating Dependencies"
6358 runs-on : ubuntu-latest
64- needs : lint
59+ timeout-minutes : 10
6560
6661 steps :
6762 - uses : actions/checkout@v4
6863 - uses : pnpm/action-setup@v4
6964 - uses : actions/setup-node@v4
7065 with :
71- node-version : 20.x
66+ node-version : 22
7267 cache : pnpm
73-
7468 - name : Install Dependencies
75- run : pnpm install --frozen-lockfile
76-
77- - run : pnpm build
78- - run : pnpm i -f # re-sync injected deps
79-
69+ run : pnpm install --no-lockfile
8070 - name : Run Tests
81- run : pnpm --filter test-app test:ember
71+ run : pnpm test
8272
8373 try-scenarios :
84- name : ${{ matrix.try-scenario }}
74+ name : ${{ matrix.name }}
8575 runs-on : ubuntu-latest
86- continue-on-error : true
87- needs : test
88-
76+ needs : " test"
77+ timeout-minutes : 10
8978 strategy :
9079 fail-fast : false
91- matrix :
92- try-scenario :
93- - ember-lts-4.12
94- - ember-lts-5.4
95- - ember-lts-5.8
96- - ember-lts-5.12
97- - ember-lts-6.4
98- - ember-lts-6.8
99- - ember-release
100- - ember-beta
101- - ember-canary
102- - embroider-safe
103- - embroider-optimized
80+ matrix : ${{fromJson(needs.test.outputs.matrix)}}
10481
10582 steps :
10683 - uses : actions/checkout@v4
10784 - uses : pnpm/action-setup@v4
10885 - uses : actions/setup-node@v4
10986 with :
110- node-version : 20
87+ node-version : 22
11188 cache : pnpm
89+ - name : Apply Scenario
90+ run : |
91+ pnpm dlx @embroider/try apply ${{ matrix.name }}
11292
11393 - name : Install Dependencies
114- run : pnpm install --frozen-lockfile
115-
116- - run : pnpm build
117- - run : pnpm i -f # re-sync injected deps
118-
94+ run : pnpm install --no-lockfile
11995 - name : Run Tests
120- env :
121- EMBER_TRY_SCENARIO : ${{ matrix.try-scenario }}
122- run : pnpm --filter test-app test:ember-try $EMBER_TRY_SCENARIO --skip-cleanup
96+ run : |
97+ pnpm test
98+
99+ env : ${{ matrix.env }}
0 commit comments