Add workflow to check that the project builds

This commit is contained in:
absidue 2021-12-30 17:50:33 +01:00
parent c7b82e6a40
commit 4033f84260

33
.github/workflows/build.yml vendored Normal file
View File

@ -0,0 +1,33 @@
name: 'Check build'
on:
push:
branches:
- main
- developer
pull_request:
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version: ['16', '17']
name: Node ${{ matrix.node-version }}
steps:
- name: Clone repository
uses: actions/checkout@v2
- name: Setup node ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
registry-url: 'https://registry.npmjs.org'
cache: 'npm'
- name: Install dependencies
run: npm install
- name: Build
run: npm run build