Merge pull request #737 from Dahlgren/ci/github-actions-client

CI workflow for client build on PRs
This commit is contained in:
Pax1601
2024-01-03 09:17:45 +01:00
committed by GitHub
3 changed files with 49 additions and 0 deletions

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

@@ -0,0 +1,44 @@
name: Build
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
client:
name: Client (${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
matrix:
node-version:
- 20.x
os:
- ubuntu-20.04
- windows-2019
include:
- os: ubuntu-20.04
script: build-release-linux
- os: windows-2019
script: build-release
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
working-directory: client
run: npm ci
- name: Build
working-directory: client
run: npm run ${{ matrix.script }}