* Enable integration tests * Install chromium * Enable webServer * Run docker compose * Build docker images * Set working dir * Add Makefile * Fix healthcheck
34 lines
629 B
YAML
34 lines
629 B
YAML
name: Go
|
|
|
|
on:
|
|
push:
|
|
branches: [ main ]
|
|
paths:
|
|
- '.github/**'
|
|
- 'db/**'
|
|
pull_request:
|
|
paths:
|
|
- '.github/**'
|
|
- 'db/**'
|
|
|
|
jobs:
|
|
db-test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
- uses: actions/setup-go@v6
|
|
with:
|
|
go-version: '1.25'
|
|
|
|
- run: make db-fmt
|
|
- name: Ensure formatting
|
|
run: |
|
|
if [ -n "$(gofmt -l .)" ]; then
|
|
echo "Go files are not formatted"
|
|
exit 1
|
|
fi
|
|
git diff --exit-code
|
|
working-directory: db
|
|
- run: make db-vet
|
|
- run: make db-test
|