Skip to content

Commit

Permalink
Add job to run tests on pull requests
Browse files Browse the repository at this point in the history
  • Loading branch information
tidoust committed Apr 22, 2024
1 parent a468ac4 commit 3da1480
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Test code

on:
push:
branches: main
pull_request:
branches: main

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- run: npm ci
- run: npm test

0 comments on commit 3da1480

Please sign in to comment.