Skip to content

run github actions only once on PR #246

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 15 commits into
base: develop
Choose a base branch
from
11 changes: 11 additions & 0 deletions .github/workflows/test-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,17 @@ env:
dir: '../'
conf: '../../conf.json.example'
jobs:
check-double-run:
runs-on: ubuntu-latest
steps:
- uses: rlespinasse/[email protected]
- name: Cancel this build
uses: knoxfighter/cancel-multi-action@main
with:
token: ${{ secrets.GITHUB_TOKEN }}
if: github.event_name == 'pull_request'
test-npm:
needs: [ check-double-run ]
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
Expand All @@ -25,6 +35,7 @@ jobs:
- uses: actions/setup-node@v1
- run: make app/bundle
test-go:
needs: [check-double-run]
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
Expand Down