From fdfe1aa068328caf74b7625445bb3f274d19e5a0 Mon Sep 17 00:00:00 2001 From: sverweij Date: Sun, 21 Aug 2022 13:45:34 +0200 Subject: [PATCH] chore(ci): upgrades github workflow dependencies to latest --- .../{lint-test-workflow.yml => ci.yml} | 37 +++++++------------ 1 file changed, 13 insertions(+), 24 deletions(-) rename .github/workflows/{lint-test-workflow.yml => ci.yml} (55%) diff --git a/.github/workflows/lint-test-workflow.yml b/.github/workflows/ci.yml similarity index 55% rename from .github/workflows/lint-test-workflow.yml rename to .github/workflows/ci.yml index c3a77a52..a5a9d93a 100644 --- a/.github/workflows/lint-test-workflow.yml +++ b/.github/workflows/ci.yml @@ -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/codeclimate-action@v2.7.5 + - run: npm run test:cover + - uses: paambaati/codeclimate-action@v3.0.0 env: CC_TEST_REPORTER_ID: ${{ secrets.CODE_CLIMATE_TEST_COVERAGE_ID }}