Skip to content

Add CORS middleware, CI lint + test, add comments #4

Add CORS middleware, CI lint + test, add comments

Add CORS middleware, CI lint + test, add comments #4

Workflow file for this run

name: Checks
on:
pull_request:
jobs:
test:
runs-on: ubuntu-latest
services:
postgres:
image: postgres@sha256:163763c8afd28cae69035ce84b12d8180179559c747c0701b3cad17818a0dbc5
env:
POSTGRES_USER: accounts
POSTGRES_PASSWORD: password
ports:
- 5432:5432
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Setup golang
uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0
with:
go-version: '1.23'
- name: Install dependencies
run: go get .
- name: Lint
uses: golangci/golangci-lint-action@971e284b6050e8a5849b72094c50ab08da042db8 # v6.1.1
with:
version: v1.62
- name: Test
run: go test -p 1 -v ./...
env:
TEST_DATABASE_URL: postgres://accounts:password@localhost/postgres?sslmode=disable