Skip to content

Fix/select testing library (#89) #136

Fix/select testing library (#89)

Fix/select testing library (#89) #136

Workflow file for this run

# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: read
id-token: write # Required for OIDC
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x, 22.x, 24.x]
steps:
- name: Checkout repo
uses: actions/checkout@v5
- name: Setup Node.js
uses: actions/setup-node@v5
with:
node-version: ${{ matrix.node-version }}
cache: npm
- name: Install dependencies
run: npm ci
- name: Run Vitest
run: npm run test:ci
coverage:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
steps:
- name: Checkout repo
uses: actions/checkout@v5
- name: Setup Node.js
uses: actions/setup-node@v5
with:
node-version: 24.x
cache: npm
- name: Install dependencies
run: npm ci
- name: Run Vitest
run: npm run test:ci
- name: Upload coverage to Qlty
uses: qltysh/qlty-action/coverage@v2
with:
oidc: true
files: coverage/lcov.info