Skip to content

Commit

Permalink
feat: wait for unit tests before package publish
Browse files Browse the repository at this point in the history
  • Loading branch information
okjodom committed Nov 2, 2024
1 parent 008727e commit a8068bc
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/publish-api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,19 @@ on:
workflow_dispatch:

jobs:
wait-for-tests:
runs-on: ubuntu-latest
steps:
- name: Wait for unit tests to succeed
uses: lewagon/[email protected]
with:
ref: ${{ github.ref }}
check-name: 'run-unit-tests'
repo-token: ${{ secrets.GITHUB_TOKEN }}
wait-interval: 10

docker:
needs: wait-for-tests
runs-on: ubuntu-latest
steps:
- name: Set up QEMU
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/publish-swap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,19 @@ on:
workflow_dispatch:

jobs:
wait-for-tests:
runs-on: ubuntu-latest
steps:
- name: Wait for unit tests to succeed
uses: lewagon/[email protected]
with:
ref: ${{ github.ref }}
check-name: 'run-unit-tests'
repo-token: ${{ secrets.GITHUB_TOKEN }}
wait-interval: 10

docker:
needs: wait-for-tests
runs-on: ubuntu-latest
steps:
- name: Set up QEMU
Expand Down

0 comments on commit a8068bc

Please sign in to comment.