Feat:cancel previous actions on push (#707)
This commit is contained in:
1 parent
e82737a035
commit
649d8d34aa
1 file changed
+14
-4
@@ -5,6 +5,11 @@ jobs:
|
|||||||
unit-tests:
|
unit-tests:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
- name: Cancel Previous Runs
|
||||||
|
uses: styfle/cancel-workflow-action@0.9.1
|
||||||
|
with:
|
||||||
|
access_token: ${{ github.token }}
|
||||||
|
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2.3.5
|
uses: actions/checkout@v2.3.5
|
||||||
with:
|
with:
|
||||||
@@ -13,8 +18,8 @@ jobs:
|
|||||||
- name: Setup Node.js environment
|
- name: Setup Node.js environment
|
||||||
uses: actions/setup-node@v2.4.1
|
uses: actions/setup-node@v2.4.1
|
||||||
with:
|
with:
|
||||||
node-version: '14'
|
node-version: "14"
|
||||||
cache: 'yarn'
|
cache: "yarn"
|
||||||
|
|
||||||
- name: Assert changed
|
- name: Assert changed
|
||||||
run: ./scripts/assert-changed-files-actions.sh "packages"
|
run: ./scripts/assert-changed-files-actions.sh "packages"
|
||||||
@@ -45,6 +50,11 @@ jobs:
|
|||||||
- 5432:5432
|
- 5432:5432
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: Cancel Previous Runs
|
||||||
|
uses: styfle/cancel-workflow-action@0.9.1
|
||||||
|
with:
|
||||||
|
access_token: ${{ github.token }}
|
||||||
|
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2.3.5
|
uses: actions/checkout@v2.3.5
|
||||||
with:
|
with:
|
||||||
@@ -53,8 +63,8 @@ jobs:
|
|||||||
- name: Setup Node.js environment
|
- name: Setup Node.js environment
|
||||||
uses: actions/setup-node@v2.4.1
|
uses: actions/setup-node@v2.4.1
|
||||||
with:
|
with:
|
||||||
node-version: '14'
|
node-version: "14"
|
||||||
cache: 'yarn'
|
cache: "yarn"
|
||||||
|
|
||||||
- name: Bootstrap packages
|
- name: Bootstrap packages
|
||||||
uses: ./.github/actions/cache-bootstrap
|
uses: ./.github/actions/cache-bootstrap
|
||||||
|
|||||||
Reference in new issue
Block a user