refine wait for test
@@ -9,9 +9,22 @@ on:
# types: [prereleased,released]
jobs:
+ test:
+ runs-on: ubuntu-latest
+ steps:
+ - name: 'wait for tests'
+ uses: lewagon/wait-on-check-action@v1.0.0
+ with:
+ ref: ${{ github.ref }}
+ check-name: 'go test & build'
+ repo-token: ${{ secrets.GITHUB_TOKEN }}
+ wait-interval: 10
+
linux-windows:
name: 'build linux and windows binaries'
runs-on: ubuntu-latest
+ needs:
+ - test
env:
VERSION_PACKAGE: 'github.com/avenga/couper/utils'
strategy:
@@ -22,14 +35,6 @@ jobs:
steps:
- uses: actions/checkout@v2
- - name: 'wait for tests'
- uses: lewagon/wait-on-check-action@v1.0.0
- with:
- ref: ${{ github.ref }}
- check-name: 'go test & build'
- repo-token: ${{ secrets.GITHUB_TOKEN }}
- wait-interval: 10
-
- name: Set outputs
id: vars
run: |
@@ -50,6 +55,8 @@ jobs:
macos:
name: 'build and sign MacOS binary'
runs-on: macos-11
+ needs:
+ - test
strategy:
matrix:
goarch: [amd64, arm64]
@@ -66,14 +73,6 @@ jobs:
with:
go-version: 1.17.x
- - name: 'wait for tests'
- uses: lewagon/wait-on-check-action@v1.0.0
- with:
- ref: ${{ github.ref }}
- check-name: 'go test & build'
- repo-token: ${{ secrets.GITHUB_TOKEN }}
- wait-interval: 10
-
- name: 'import certificate'
uses: devbotsxyz/import-signing-certificate@v1
with:
