Skip to content

Commit

Permalink
Added Github Actions workflow to run npm test script on push to git
Browse files Browse the repository at this point in the history
  • Loading branch information
manicki committed Dec 18, 2024
1 parent 655cc26 commit 17a8409
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/lint-and-test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Lint and Test
on: push
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: ['20.x', '22.x', '23.x']
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install dependencies
run: npm ci
- run: npm test

0 comments on commit 17a8409

Please sign in to comment.