fix: help with eslint upgrade #6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Unit Tests" | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
concurrency: | |
group: ${{ github.workflow }}-${{ (github.event.pull_request && github.event.pull_request.number) || github.ref || github.run_id }} | |
cancel-in-progress: true | |
permissions: | |
contents: read | |
jobs: | |
unit-tests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2 | |
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2 | |
with: | |
cache: yarn | |
node-version: '20' | |
- run: yarn install --frozen-lockfile | |
- run: yarn coverage | |
- name: Upload coverage to codecov.io | |
uses: codecov/codecov-action@84508663e988701840491b86de86b666e8a86bed # v4.3.0 | |
with: | |
fail_ci_if_error: true | |
verbose: true | |
# Using upload token helps against rate limiting errors. | |
# Cannot define it as secret as we need it accessible from forks. | |
# See https://github.com/codecov/codecov-action/issues/837 | |
token: 31c3122b-7b49-4267-a117-8c9354a97119 |