From 75cc8c60baca69b5fb2113036ad27492f92ae563 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Asbj=C3=B8rn=20Ulsberg?= Date: Thu, 28 Dec 2023 15:14:14 +0100 Subject: [PATCH] chore: Add GitHub Actions build workflow --- .github/workflows/build.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 00000000..25ec7308 --- /dev/null +++ b/.github/workflows/build.yml @@ -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