Enable integration tests (#760)

* Enable integration tests

* Install chromium

* Enable webServer

* Run docker compose

* Build docker images

* Set working dir

* Add Makefile

* Fix healthcheck
This commit is contained in:
Jonas Plum
2026-02-05 08:40:26 +01:00
committed by GitHub
parent 32e6b6a6cc
commit 359957017f
6 changed files with 66 additions and 20 deletions

View File

@@ -19,9 +19,8 @@ jobs:
- uses: actions/setup-go@v6
with:
go-version: '1.25'
- name: go fmt
run: go fmt ./...
working-directory: db
- run: make db-fmt
- name: Ensure formatting
run: |
if [ -n "$(gofmt -l .)" ]; then
@@ -30,9 +29,5 @@ jobs:
fi
git diff --exit-code
working-directory: db
- name: go vet
run: go vet ./...
working-directory: db
- name: go test
run: go test ./...
working-directory: db
- run: make db-vet
- run: make db-test

View File

@@ -14,9 +14,6 @@ on:
jobs:
test:
runs-on: ubuntu-latest
defaults:
run:
working-directory: web
steps:
- uses: actions/checkout@v6
@@ -25,6 +22,17 @@ jobs:
with:
node-version: '22'
- run: npm install
- run: npm run check
- run: npm run test:unit
- uses: actions/setup-go@v6
with:
go-version: '1.25'
- run: make db-build-docker
- run: make web-build-docker
- run: docker compose up -d
- run: make web-install
- run: make web-playwright-install
- run: make web-check
- run: make web-test