| 123456789101112131415161718192021222324252627282930 |
- name: CI
- on:
- push:
- branches: [master, main]
- pull_request:
- branches: [master, main]
- jobs:
- build-and-test:
- runs-on: ubuntu-latest
- strategy:
- matrix:
- node-version: [20, 22]
- steps:
- - uses: actions/checkout@v4
- - uses: pnpm/action-setup@v4
- with:
- version: 9
- - uses: actions/setup-node@v4
- with:
- node-version: ${{ matrix.node-version }}
- cache: pnpm
- - run: pnpm install --frozen-lockfile
- - run: pnpm build
- - run: pnpm test
|