24 lines
519 B
YAML
24 lines
519 B
YAML
name: Continuous Integration (CI)
|
|
|
|
on:
|
|
pull_request:
|
|
branches: [main]
|
|
push:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
node: [22, 24]
|
|
name: Node ${{ matrix.node }}
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: ${{ matrix.node }}
|
|
cache: "npm"
|
|
cache-dependency-path: "package-lock.json"
|
|
- run: npm ci
|
|
- run: npm run test --workspaces --if-present
|