Skip to content

Commit 05f0715

Browse files
committed
add scenario-tester CI
1 parent d31f426 commit 05f0715

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

.github/workflows/ci.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,3 +161,47 @@ jobs:
161161
- run: pnpm install --frozen-lockfile
162162
- name: test
163163
run: pnpm --filter ember-cli-fastboot exec ember try:one ${{ matrix.ember-try-scenario }} --skip-cleanup
164+
165+
discover_matrix:
166+
runs-on: ubuntu-latest
167+
168+
outputs:
169+
matrix: ${{ steps.set-matrix.outputs.matrix }}
170+
171+
steps:
172+
- uses: actions/checkout@v3
173+
- uses: pnpm/action-setup@v2
174+
with:
175+
version: 7
176+
- uses: actions/setup-node@v3
177+
with:
178+
node-version: 14
179+
cache: pnpm
180+
- run: pnpm install --frozen-lockfile
181+
- id: set-matrix
182+
working-directory: test-packages/test-scenarios
183+
run: echo "::set-output name=matrix::$(npm run --silent test:list -- --matrix 'npm run test -- --filter %s:')"
184+
185+
scenario-tester:
186+
needs: discover_matrix
187+
name: ${{ matrix.name }}
188+
runs-on: ubuntu-latest
189+
timeout-minutes: 7
190+
191+
strategy:
192+
fail-fast: false
193+
matrix: ${{fromJson(needs.discover_matrix.outputs.matrix)}}
194+
195+
steps:
196+
- uses: actions/checkout@v3
197+
- uses: pnpm/action-setup@v2
198+
with:
199+
version: 7
200+
- uses: actions/setup-node@v3
201+
with:
202+
node-version: 14
203+
cache: pnpm
204+
- run: pnpm install --frozen-lockfile
205+
- name: test
206+
run: ${{ matrix.command }}
207+
working-directory: test-packages/test-scenarios

0 commit comments

Comments
 (0)