Use wait-for rather than needs

Allows test jobs to start long-running steps before other jobs on which
it depends have completed.
This commit is contained in:
Leroy Hopson 2023-01-26 08:01:02 +13:00
parent 26aa4765d1
commit cbc13fa32c
No known key found for this signature in database
GPG key ID: D2747312A6DB51AA

View file

@ -231,7 +231,6 @@ jobs:
test: test:
name: 'Test' name: 'Test'
needs: [ import_assets, build_docker ] #, build_native ]
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
strategy: strategy:
fail-fast: false fail-fast: false
@ -249,16 +248,23 @@ jobs:
with: with:
version: ${{ matrix.godot_version }} version: ${{ matrix.godot_version }}
bits: ${{ matrix.bits }} bits: ${{ matrix.bits }}
- name: Install release binary build artifacts - name: Wait for build
uses: actions/download-artifact@v3 uses: fountainhead/action-wait-for-check@v1.1.0
with: with:
name: libgodot-xterm-release token: ${{ secrets.GITHUB_TOKEN }}
path: addons/godot_xterm/native/bin checkName: Build Docker (debug, x86_${{ matrix.bits }})
ref: ${{ github.event.pull_request.head.sha || github.sha }}
- name: Install debug binary build artifacts - name: Install debug binary build artifacts
uses: actions/download-artifact@v3 uses: actions/download-artifact@v3
with: with:
name: libgodot-xterm-debug name: libgodot-xterm-debug
path: addons/godot_xterm/native/bin path: addons/godot_xterm/native/bin
- name: Wait for asset import
uses: fountainhead/action-wait-for-check@v1.1.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
checkName: Import Assets (${{ matrix.os }})
ref: ${{ github.event.pull_request.head.sha || github.sha }}
- name: Download imports - name: Download imports
uses: actions/download-artifact@v3 uses: actions/download-artifact@v3
with: with: