Skip to content

Drop Node < 18, upgrade devDependencies and CI Actions (#61) #72

Drop Node < 18, upgrade devDependencies and CI Actions (#61)

Drop Node < 18, upgrade devDependencies and CI Actions (#61) #72

Workflow file for this run

name: Tests
on: push
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18, 20]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Cache Node.js modules
uses: actions/cache@v4
with:
path: ${{ github.workspace }}/node_modules
key: ${{ runner.OS }}-${{ matrix.node-version}}-node_modules-${{ hashFiles('yarn.lock') }}
- run: yarn --frozen-lockfile
- run: yarn lint --max-warnings=0
- run: yarn test --coverage
- name: Create coverage report flag
id: codecov-flag
run: echo "::set-output name=flag::node_${NODE_VERSION/./_}"
env:
NODE_VERSION: ${{ matrix.node-version }}
- uses: codecov/codecov-action@v1
with:
flags: ${{ steps.codecov-flag.outputs.flag }}