Skip to content

add vitest

add vitest #1

Workflow file for this run

name: CI
on:
push:
pull_request:
workflow_dispatch:
concurrency:
group: ci-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
env:
PLAYWRIGHT_BROWSERS_PATH: ${{ github.workspace }}/.cache/ms-playwright
jobs:
test:
runs-on: ${{ matrix.os }}
timeout-minutes: 10
strategy:
matrix:
os: [ubuntu-latest]
node_version: [20]
# include:
# - os: macos-14
# node_version: 20
# - os: windows-latest
# node_version: 20
fail-fast: false
steps:
- uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
- name: Set node version to ${{ inputs.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ inputs.node-version }}
- name: Install
run: npm i
- name: Install Playwright Dependencies
run: pnpm exec playwright install chromium --with-deps
- name: Build
run: npm run build
- name: Test
run: npm run test