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 cbd3855
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/publish-api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,17 @@ 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:
runs-on: ubuntu-latest
steps:
Expand Down
11 changes: 11 additions & 0 deletions .github/workflows/publish-swap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,17 @@ 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:
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit cbd3855

Please sign in to comment.