Skip to content

Merge pull request #1367 from DalgoT4D/snyk-upgrade-71242aec3b680088c… #2443

Merge pull request #1367 from DalgoT4D/snyk-upgrade-71242aec3b680088c…

Merge pull request #1367 from DalgoT4D/snyk-upgrade-71242aec3b680088c… #2443

Workflow file for this run

name: Unit testing
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
name: CI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'yarn'
- name: Install Dependencies
run: yarn install --frozen-lockfile
- name: Run Prettier
run: yarn run format:check
- name: Run linter
run: yarn run eslint 'src/**/*.{js,ts,tsx}' --quiet
- name: Run test and generate coverage report
run: yarn test:coverage
- name: Upload coverage to Codecov
uses: codecov/[email protected]
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}