From 4a9bcd1b829457f32ecb8092a6bb19ca6377bcf4 Mon Sep 17 00:00:00 2001 From: Dan Berg <61684965+wg-daniel@users.noreply.github.com> Date: Tue, 11 Aug 2026 22:43:47 +0200 Subject: [PATCH] ci: Add GitHub Actions test workflow (#736) --- .github/workflows/test.yml | 40 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..b7e2f1a --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,40 @@ +name: Test + +on: + pull_request: + branches: [master] + push: + branches: [master] + # Allow running manually from the Actions tab against any branch or tag. + workflow_dispatch: + +permissions: + contents: read + +jobs: + test: + name: make test + runs-on: ubuntu-latest + steps: + - name: Check out the repo + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + + - name: Set up Node + uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 + with: + node-version: 22 + cache: npm + cache-dependency-path: frontend/package-lock.json + + - name: Set up Go + uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0 + with: + go-version-file: go.mod + + # internal/app/api/core/assets.go embeds frontend-dist/, which is gitignored. + # Without this the Go build fails before any test runs. + - name: Build frontend + run: make frontend + + - name: Run tests + run: make test