mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-06 00:12:16 +02:00
Change where workflow is skipped
This commit is contained in:
parent
878c44db0b
commit
7f570a2004
5
.github/workflows/test-shard-template.yml
vendored
5
.github/workflows/test-shard-template.yml
vendored
@ -12,11 +12,16 @@ on:
|
|||||||
totalShards:
|
totalShards:
|
||||||
required: true
|
required: true
|
||||||
type: number
|
type: number
|
||||||
|
skip:
|
||||||
|
required: true
|
||||||
|
type: boolean
|
||||||
|
default: false
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
name: Shard ${{ inputs.shard }} of ${{ inputs.totalShards }}
|
name: Shard ${{ inputs.shard }} of ${{ inputs.totalShards }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
if: ${{ inputs.skip == 'false' }}
|
||||||
steps:
|
steps:
|
||||||
- name: Check out Git repository
|
- name: Check out Git repository
|
||||||
uses: actions/checkout@v4.2.2
|
uses: actions/checkout@v4.2.2
|
||||||
|
2
.github/workflows/tests.yml
vendored
2
.github/workflows/tests.yml
vendored
@ -31,7 +31,6 @@ jobs:
|
|||||||
run-tests:
|
run-tests:
|
||||||
name: Run Tests
|
name: Run Tests
|
||||||
needs: check-path-change-filter
|
needs: check-path-change-filter
|
||||||
if: ${{ needs.changes.outputs.all == 'true'}}
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
shard: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
|
shard: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
|
||||||
@ -40,3 +39,4 @@ jobs:
|
|||||||
project: main
|
project: main
|
||||||
shard: ${{ matrix.shard }}
|
shard: ${{ matrix.shard }}
|
||||||
totalShards: 10
|
totalShards: 10
|
||||||
|
skip: ${{ needs.check-path-change-filter.outputs.all == 'false'}}
|
||||||
|
Loading…
Reference in New Issue
Block a user