Skip to content

Commit

Permalink
Cancel previous smoke tests run when new commit is added into PR (#471)
Browse files Browse the repository at this point in the history
* Cancel previous smoke tests run when new commit is added into PR

* Cancel run only for pull request
  • Loading branch information
kornys authored Aug 9, 2021
1 parent 19e87af commit e94d1b2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/smoke.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,18 @@ jobs:
smoke:
runs-on: ubuntu-latest
steps:
- name: Cancel Previous Runs
if: github.event_name == 'pull_request'
uses: styfle/[email protected]

- name: Checkout
uses: actions/checkout@v1

- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 11

- name: Cache m2 repo
uses: actions/cache@v1
with:
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,18 @@ jobs:
if: ${{ github.event.label.name == 'run-all-tests' }}
runs-on: ubuntu-latest
steps:
- name: Cancel Previous Runs
if: github.event_name == 'pull_request'
uses: styfle/[email protected]

- name: Checkout
uses: actions/checkout@v1

- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 11

- name: Cache m2 repo
uses: actions/cache@v1
with:
Expand Down

0 comments on commit e94d1b2

Please sign in to comment.