Skip to content

Commit

Permalink
add github test action
Browse files Browse the repository at this point in the history
  • Loading branch information
Sysix committed Jun 16, 2024
1 parent 3ac375f commit 5dfc531
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: test

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

jobs:
build:
runs-on: ubuntu-latest

strategy:
fail-fast: true
matrix:
node: [21, 22, 23, 24]

name: Run tests on Node v${{ matrix.node }}
steps:
- name: checkout
uses: actions/checkout@v4

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

- name: install
run: npm ci

- name: build
run: npm run build

- name: test
run: npm run test

0 comments on commit 5dfc531

Please sign in to comment.