Skip to content

4.x

4.x #33

Workflow file for this run

name: Testing
on:
push:
branches: [ master, 4.x ]
pull_request:
branches: [ master, 4.x ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install dependencies
run: npm install
- name: Lint with ESLint
run: npm run lint
- name: Run tests and collect coverage
run: npm run coverage
- name: List coverage directory
run: ls -l coverage/
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
directory: ./coverage/
verbose: true