Skip to content

fix: ci script

fix: ci script #2

Workflow file for this run

name: CI
on: ['push', 'pull_request']
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
- name: Install dependencies, typecheck, lint, format, test
run: |
npm ci
npm run typecheck
npm run lint
npx prettier --check .
npx jest --ci --coverage
env:
CI: true
- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}