diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6772dce8..865f8f53 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -161,3 +161,47 @@ jobs: - run: pnpm install --frozen-lockfile - name: test run: pnpm --filter ember-cli-fastboot exec ember try:one ${{ matrix.ember-try-scenario }} --skip-cleanup + + discover_matrix: + runs-on: ubuntu-latest + + outputs: + matrix: ${{ steps.set-matrix.outputs.matrix }} + + steps: + - uses: actions/checkout@v3 + - uses: pnpm/action-setup@v2 + with: + version: 7 + - uses: actions/setup-node@v3 + with: + node-version: 14 + cache: pnpm + - run: pnpm install --frozen-lockfile + - id: set-matrix + working-directory: test-packages/test-scenarios + run: echo "::set-output name=matrix::$(npm run --silent test:list -- --matrix 'npm run test -- --filter %s:')" + + scenario-tester: + needs: discover_matrix + name: ${{ matrix.name }} + runs-on: ubuntu-latest + timeout-minutes: 7 + + strategy: + fail-fast: false + matrix: ${{fromJson(needs.discover_matrix.outputs.matrix)}} + + steps: + - uses: actions/checkout@v3 + - uses: pnpm/action-setup@v2 + with: + version: 7 + - uses: actions/setup-node@v3 + with: + node-version: 14 + cache: pnpm + - run: pnpm install --frozen-lockfile + - name: test + run: ${{ matrix.command }} + working-directory: test-packages/test-scenarios \ No newline at end of file