-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(ci): upgrades github workflow dependencies to latest
- Loading branch information
Showing
1 changed file
with
13 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,56 +7,45 @@ on: | |
- develop | ||
pull_request: | ||
|
||
env: | ||
CI: true | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
|
||
jobs: | ||
check: | ||
strategy: | ||
fail-fast: true | ||
matrix: | ||
node-version: | ||
- 16.x | ||
- 18.x | ||
platform: | ||
- ubuntu-latest | ||
|
||
runs-on: ${{matrix.platform}} | ||
|
||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v1 | ||
- name: cache node modules for ${{matrix.node-version}}@${{matrix.platform}} | ||
uses: actions/cache@v1 | ||
- uses: actions/checkout@v3 | ||
- uses: actions/cache@v3 | ||
with: | ||
path: node_modules | ||
key: ${{matrix.node-version}}@${{matrix.platform}}-build-${{hashFiles('package.json')}} | ||
restore-keys: | | ||
${{matrix.node-version}}@${{matrix.platform}}-build- | ||
- name: set up node ${{matrix.node-version}}@${{matrix.platform}} | ||
uses: actions/setup-node@v1 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{matrix.node-version}} | ||
- name: install & build | ||
run: | | ||
node --version | ||
npm install | ||
npm run build | ||
shell: bash | ||
env: | ||
CI: true | ||
- name: lint & forbidden dependency check | ||
run: | | ||
node --version | ||
npm run lint | ||
npm run depcruise | ||
shell: bash | ||
env: | ||
CI: true | ||
- name: test coverage | ||
run: | | ||
node --version | ||
npm run test:cover | ||
shell: bash | ||
env: | ||
CI: true | ||
- name: report coverage to code climate | ||
uses: paambaati/[email protected] | ||
- run: npm run test:cover | ||
- uses: paambaati/[email protected] | ||
env: | ||
CC_TEST_REPORTER_ID: ${{ secrets.CODE_CLIMATE_TEST_COVERAGE_ID }} |