Skip to content

chore(deps): update dependency eslint to v9 (#125) #410

chore(deps): update dependency eslint to v9 (#125)

chore(deps): update dependency eslint to v9 (#125) #410

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x, 20.x]
env:
CI: true
COVERAGE: ${{ matrix.node-version == '20.x' && true || false }}
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: yarn install
- run: yarn dist
- run: yarn test
# Coverage.
- name: Run coverage
if: ${{ env.COVERAGE == 'true' }}
run: |
yarn coverage
yarn coverage:report
- name: Report coverage
if: ${{ env.COVERAGE == 'true' }}
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: coverage/coverage.lcov
fail_ci_if_error: true