Skip to content

Commit

Permalink
Added CI action for running tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
LTLA committed Feb 19, 2024
1 parent a0ca40b commit dc5a3ea
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/run-tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
on:
push:
paths-ignore:
- README.md
branches:
- master
pull_request:
paths-ignore:
- README.md

name: Run tests

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Set up Node
uses: actions/setup-node@v2
with:
node-version: 20

- name: Restore the node modules
uses: actions/cache@v3
with:
path: '**/node_modules'
key: modules-${{ hashFiles('**/package.json') }}

- name: Install packages
run: npm i --include-dev

- name: Run tests
run: npm run test

0 comments on commit dc5a3ea

Please sign in to comment.