Skip to content

Commit

Permalink
add github actions (#247)
Browse files Browse the repository at this point in the history
  • Loading branch information
SteffenDE authored Oct 10, 2024
1 parent ff93446 commit a66548a
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: CI

on:
push:
pull_request:
branches:
- master

jobs:
npm_test:
name: npm test

strategy:
matrix:
include:
- node: 16.x

runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

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

- name: Restore npm cache
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-${{ matrix.node }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-${{ matrix.node }}-node-
- name: npm install and test
run: |
npm install
npm test

0 comments on commit a66548a

Please sign in to comment.