From 07a292217ab7dbe16c2211931234c5a53b93aa56 Mon Sep 17 00:00:00 2001 From: flx-sta <50131232+flx-sta@users.noreply.github.com> Date: Tue, 10 Sep 2024 10:53:05 -0700 Subject: [PATCH] remove `runs-on` from run-tests --- .github/workflows/tests.yml | 30 +++++++++++------------------- 1 file changed, 11 insertions(+), 19 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 3e09b000667..01ecf7db685 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -15,8 +15,8 @@ on: types: [checks_requested] jobs: - setup: - name: Checkout & node install + pre-test: + name: Run Pre-test runs-on: ubuntu-latest steps: - name: Check out Git repository @@ -27,27 +27,19 @@ jobs: uses: actions/setup-node@v4 with: node-version: 20 - path: tests-action - name: Install Node.js dependencies working-directory: tests-action run: npm ci - - pre-test: - name: Run Pre-test - runs-on: ubuntu-latest - needs: setup - steps: - name: Run Pre-test working-directory: tests-action run: npx vitest run --project pre ${{ runner.debug == '1' && '' || '--silent' }} - # run-tests: - # name: Run Tests - # runs-on: ubuntu-latest - # needs: pre-test - # strategy: - # matrix: - # project: [misc, abilities, items, moves, battle] - # uses: ./.github/workflows/run-test-template.yml - # with: - # project: ${{ matrix.project }} \ No newline at end of file + run-tests: + name: Run Tests + needs: pre-test + strategy: + matrix: + project: [misc, abilities, items, moves, battle] + uses: ./.github/workflows/run-test-template.yml + with: + project: ${{ matrix.project }} \ No newline at end of file