Skip to content

Merge pull request #25 from unlibra/dependabot/npm_and_yarn/website/q… #62

Merge pull request #25 from unlibra/dependabot/npm_and_yarn/website/q…

Merge pull request #25 from unlibra/dependabot/npm_and_yarn/website/q… #62

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [22, 24]
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Build
run: pnpm build
- name: Type check
run: pnpm type-check
- name: Lint
run: pnpm lint
- name: Test
run: pnpm test
# Job to verify that all tests passed
# Use this job name in Branch Protection Rules
status-check:
runs-on: ubuntu-latest
needs: [test]
if: always()
steps:
- name: Check test status
if: ${{ needs.test.result != 'success' }}
run: exit 1
- name: All tests passed
run: echo "All tests passed"