chore(repo): implement CI w/ github actions (#4)
This commit is contained in:
parent
d6696a150b
commit
985dbc32cd
5 changed files with 31 additions and 2 deletions
24
.github/workflows/ci.yml
vendored
Normal file
24
.github/workflows/ci.yml
vendored
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue