add actions

This commit is contained in:
Kristoffer
2023-08-01 14:42:30 +00:00
parent e44a5bb527
commit 4dc8fbdce6
20 changed files with 52405 additions and 631 deletions

24
.github/workflows/pr.yml vendored Normal file
View File

@@ -0,0 +1,24 @@
name: Pull Request
on:
pull_request:
branches: [ main ]
jobs:
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
strategy:
matrix:
node: [ 16, 18, 20 ]
name: Node ${{ matrix.node }} sample
steps:
- uses: actions/checkout@v3
- name: Run linting rules and tests
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- run: npm ci
- run: npm run lint
- run: npm run test