Skip to content

Update codecov/codecov-action action to v5 #57

Update codecov/codecov-action action to v5

Update codecov/codecov-action action to v5 #57

Workflow file for this run

name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 16
registry-url: https://registry.npmjs.org/
- name: Install dependencies
run: npm ci
- name: Run ESLint
run: npx eslint ./src --max-warnings 0
- name: Build
run: npm run build
- name: Run Tests
run: npm run test:ci
- name: Codecov
uses: codecov/[email protected]
if: matrix.os == 'ubuntu-latest'
with:
token: ${{ secrets.CODECOV_TOKEN }}
directory: coverage