dangkhoa2016's picture
test: migrate to vitest with integration tests and CI workflow
75a60d6
Raw History Blame
612 Bytes
name: Test
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 10
strategy:
matrix:
node-version: [22, 24, 26]
steps:
- uses: actions/checkout@v7
- uses: actions/setup-node@v7
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
- run: yarn install --frozen-lockfile
- run: yarn run test:coverage
- uses: actions/upload-artifact@v7
with:
name: coverage-report-node-${{ matrix.node-version }}
path: coverage/