Skip to content

Commit

Permalink
ci: update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
akhdrv committed Apr 11, 2023
1 parent 92ea872 commit a1435f6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 14 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ on:
branches:
- master

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
test:
name: Unit testing
Expand All @@ -16,7 +20,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_REGISTRY_TOKEN: ${{ secrets.NPM_REGISTRY_TOKEN }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Prepare repository
run: git fetch --unshallow --tags
Expand All @@ -26,13 +30,11 @@ jobs:
with:
node-version-file: '.nvmrc'

- name: Cache node modules
uses: actions/cache@v1
- name: Cache node_modules
uses: actions/cache@v3
with:
path: node_modules
key: npm-deps-${{ hashFiles('package-lock.json') }}
restore-keys: |
npm-deps-${{ hashFiles('package-lock.json') }}

- name: Setup packages
run: |
Expand All @@ -48,7 +50,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_REGISTRY_TOKEN: ${{ secrets.NPM_REGISTRY_TOKEN }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Prepare repository
run: git fetch --unshallow --tags
Expand All @@ -59,12 +61,10 @@ jobs:
node-version-file: '.nvmrc'

- name: Cache node modules
uses: actions/cache@v1
uses: actions/cache@v3
with:
path: node_modules
key: npm-deps-${{ hashFiles('package-lock.json') }}
restore-keys: |
npm-deps-${{ hashFiles('package-lock.json') }}

- name: Setup packages
run: |
Expand Down
8 changes: 3 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_REGISTRY_TOKEN: ${{ secrets.NPM_REGISTRY_TOKEN }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Prepare repository
run: git fetch --unshallow --tags
Expand All @@ -33,13 +33,11 @@ jobs:
with:
node-version-file: '.nvmrc'

- name: Cache node modules
uses: actions/cache@v1
- name: Cache node_modules
uses: actions/cache@v3
with:
path: node_modules
key: npm-deps-${{ hashFiles('package-lock.json') }}
restore-keys: |
npm-deps-${{ hashFiles('package-lock.json') }}

- name: Setup packages
run: |
Expand Down

0 comments on commit a1435f6

Please sign in to comment.