remove runs-on from run-tests

This commit is contained in:
flx-sta 2024-09-10 10:53:05 -07:00
parent 60999130c8
commit 07a292217a

View File

@ -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 }}
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 }}