Add github action to run lint

This commit is contained in:
sebastian-sauer 2023-07-19 22:05:17 +02:00 committed by GitHub
parent 1a98503650
commit 1dc7a10d0f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

21
.github/workflows/build.yml vendored Normal file

@ -0,0 +1,21 @@
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
name: Build
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18.x
cache: 'npm'
- run: npm lint