Skip to content

chore: force-enable typescript linting #1558

chore: force-enable typescript linting

chore: force-enable typescript linting #1558

Workflow file for this run

name: ci
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
ci:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
node: [18, 20]
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- run: corepack enable
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Prepare environment
run: pnpm dev:prepare
- name: Lint
run: pnpm lint
- name: Test
run: pnpm vitest run --coverage
- name: Build
run: pnpm prepack
- name: Coverage
if: ${{ matrix.os == 'ubuntu-latest' && matrix.node == 20 }}
uses: codecov/codecov-action@v5
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}