Skip to content

Fix yaml struct tag, add request logging #24

Fix yaml struct tag, add request logging

Fix yaml struct tag, add request logging #24

Workflow file for this run

name: CI
on:
push:
branches: [main, initial]
pull_request:
branches: [main, initial]
jobs:
test:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4.2.2
- uses: actions/setup-go@v5.2.0
with:
go-version-file: go.mod
- name: Run tests
run: go test -v -race ./...
lint:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4.2.2
- uses: actions/setup-go@v5.2.0
with:
go-version-file: go.mod
- name: golangci-lint
uses: golangci/golangci-lint-action@v6.2.0
with:
version: v2.8.0
fmt:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4.2.2
- uses: actions/setup-go@v5.2.0
with:
go-version-file: go.mod
- name: Install golangci-lint
run: go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.8.0
- name: Check formatting
run: test -z "$(golangci-lint fmt --diff)" || (echo "Run 'golangci-lint fmt' to fix formatting" && exit 1)
build:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4.2.2
- uses: actions/setup-go@v5.2.0
with:
go-version-file: go.mod
- name: Build
run: go build -o docker-api-auth .