Skip to content

switch from nginx to caddy, add prometheus container #17

switch from nginx to caddy, add prometheus container

switch from nginx to caddy, add prometheus container #17

name: Run backend test suite
on:
pull_request:
paths:
- "backend/*"
jobs:
test-backend:
runs-on: ubuntu-latest
defaults:
run:
working-directory: './backend'
steps:
- uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: ${{ vars.GO_VERSION }}
cache-dependency-path: '**/go.sum'
- name: Install dependencies
run: |
go get ./...
go install github.com/sqlc-dev/sqlc/cmd/sqlc@latest
- name: Prepare .env for tests
run: |
echo 'POSTGRES_PASSWORD="test_password"' > .env
echo 'READ_WRITE_PASSWORD="Tq43938!Tq43938!"' >> .env
echo 'POSTGRES_DB="london_jam_sessions"' >> .env
- name: Run test suite
run: make test-ci