mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-18 22:32:32 +02:00
try setup for pre-tests
This commit is contained in:
parent
c31c4c3ac1
commit
60999130c8
31
.github/workflows/tests.yml
vendored
31
.github/workflows/tests.yml
vendored
@ -15,8 +15,8 @@ on:
|
||||
types: [checks_requested]
|
||||
|
||||
jobs:
|
||||
pre-test:
|
||||
name: Run Pre-test
|
||||
setup:
|
||||
name: Checkout & node install
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Check out Git repository
|
||||
@ -27,20 +27,27 @@ 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
|
||||
# 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 }}
|
Loading…
Reference in New Issue
Block a user