Skip to content

Trying out vitest 2.0-beta on CI #127

Trying out vitest 2.0-beta on CI

Trying out vitest 2.0-beta on CI #127

Workflow file for this run

name: TS Lib
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
ts-lib:
strategy:
fail-fast: false
matrix:
node-version: [20.x]
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
defaults:
run:
working-directory: ./ts-lib
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
cache-dependency-path: ts-lib/package-lock.json
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Run tests
run: npm test
- name: Safari Tests
if: matrix.os == 'macos-latest'
run: npm run test:safari
- name: Chrome Tests
if: always()
run: npm run test:chrome
- name: Firefox Tests
if: always()
run: npm run test:firefox
- name: Edge Tests
if: matrix.os != 'macos-latest'
run: npm run test:edge
- name: Benchmarks
if: always()
run: npm run bench
- name: Safari Benchmarks
if: matrix.os == 'macos-latest'
run: npm run bench:safari
- name: Chrome Benchmarks
if: always()
run: npm run bench:chrome
- name: Firefox Benchmarks
if: always()
run: npm run bench:firefox
- name: Edge Benchmarks
if: matrix.os != 'macos-latest'
run: npm run bench:edge