Skip to content

Commit

Permalink
chore: add github action for build and test
Browse files Browse the repository at this point in the history
  • Loading branch information
Smrtnyk committed Dec 23, 2024
1 parent f9036ca commit 4706681
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: CI

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
test:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [ 20.x, 22.x ]

steps:
- uses: actions/checkout@v4

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

- name: Install dependencies
run: npm install

- name: Build
run: npm run build

- name: Run tests
run: npm run test:all

0 comments on commit 4706681

Please sign in to comment.