CReate lint and build job using GH Actions

This commit is contained in:
Simon Warta
2022-06-07 22:55:37 +02:00
parent f8d230c6d3
commit 1fe6c17e3a
+28
View File
@@ -0,0 +1,28 @@
on:
# Push to long living branches or PRs
push:
branches:
- main
pull_request:
jobs:
lint:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '16'
- run: npm install
- run: npm run lint
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '16'
- run: npm install
- run: npm run build