Skip to content

Commit

Permalink
ci: Add CI tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
jheer committed Aug 13, 2024
1 parent 45e6618 commit 9f71089
Show file tree
Hide file tree
Showing 2 changed files with 36 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:

jobs:
test:
runs-on: ubuntu-latest

strategy:
matrix:
node: [20, 22]

name: Node ${{ matrix.node }}

steps:
- uses: actions/checkout@v4

- name: Setup Node ${{ matrix.node }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: "npm"

- name: Install Node dependencies
run: npm ci

- name: Run linter
run: npm run lint

- name: Run tests
run: npm run test
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.github
.temp
.DS_Store
node_modules/
Expand Down

0 comments on commit 9f71089

Please sign in to comment.