chore: Add GitHub Actions build workflow

This commit is contained in:
Asbjørn Ulsberg 2023-12-28 15:14:14 +01:00
parent 319e48ba91
commit 75cc8c60ba
No known key found for this signature in database
GPG key ID: 34616339C3D5E883

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

@ -0,0 +1,30 @@
name: build
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: yarn
- run: yarn install --frozen-lockfile
- run: yarn build
- uses: tj-actions/verify-changed-files@v16
id: changed-files
with:
fail-if-changed: true
- name: List changed files
if: always()
env:
FILES_CHANGED: |-
${{ steps.changed-files.outputs.changed_files }}
run: |
echo "Files changed:"
for file in ${FILES_CHANGED}
do
echo "- ${file}"
done