Skip to content

Commit

Permalink
chore(ci): upgrades github workflow dependencies to latest
Browse files Browse the repository at this point in the history
  • Loading branch information
sverweij committed Aug 21, 2022
1 parent ac87f33 commit fdfe1aa
Showing 1 changed file with 13 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit fdfe1aa

Please sign in to comment.