feat(ci): add github actions to perform a build

This commit is contained in:
Rotzbua 2024-07-16 22:34:28 +02:00
commit 589b0e7ebd
No known key found for this signature in database
GPG key ID: C69022D529C17845
3 changed files with 42 additions and 0 deletions

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

@ -0,0 +1,29 @@
name: Test Build
on:
push:
pull_request:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node: [ 18, 20, 22 ]
name: Node${{ matrix.node }}
steps:
- uses: actions/checkout@v4
- name: Setup node ${{ matrix.node }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- run: npm install
- run: make public
- run: npm run build
- name: Archive production artifacts
uses: actions/upload-artifact@v4
with:
name: dist-node${{ matrix.node }}
path: dist
retention-days: 30