Files
wg-portal/.github/workflows/test.yml
T
Dan BergandGitHub 4a9bcd1b82
Docker / Build and Push (push) Canceled after 0s
github-pages / deploy (push) Canceled after 0s
Test / make test (push) Canceled after 0s
Docker / release (push) Canceled after 0s
ci: Add GitHub Actions test workflow (#736)
2026-08-11 22:43:47 +02:00

41 lines
1.0 KiB
YAML

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