Add Actions file

This commit is contained in:
Romein van Buren 2024-07-29 16:01:42 +02:00 committed by GitHub
parent cf34d32dfa
commit 7cc88995f6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

25
.github/workflows/ci.yml vendored Normal file
View File

@ -0,0 +1,25 @@
name: CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x, 16.x, 18.x]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- run: npx eslint .