ci: check that the server builds correctly on PRs/master

This commit is contained in:
Tom French 2022-05-20 19:09:03 +01:00 committed by James Long
parent 09722d8678
commit 0486e9e37b

29
.github/workflows/build.yml vendored Normal file
View file

@ -0,0 +1,29 @@
name: Build
on:
push:
branches:
- master
pull_request:
branches: '*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install node
uses: actions/setup-node@v1
with:
node-version: 16
- name: Cache
uses: actions/cache@v2
id: cache
with:
path: '**/node_modules'
key: yarn-v1-${{ hashFiles('**/yarn.lock') }}
- name: Install
run: yarn --immutable
if: steps.cache.outputs.cache-hit != 'true'
- name: Build
run: yarn build