Skip to content

feat: basic auth

feat: basic auth #367

Workflow file for this run

name: Tests
on:
workflow_dispatch:
push:
branches: ["main"]
pull_request:
branches: ["main"]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
name: Run tests
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./src
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: "1.23.4"
- name: Install dependencies
run: go get .
- name: Run unit tests
run: go test -v ./...
if: ${{ !cancelled() }}
- name: Run formatter
run: test -z $(gofmt -l .)
if: ${{ !cancelled() }}
- name: Run Hadolint
uses: hadolint/[email protected]
if: ${{ !cancelled() }}
with:
dockerfile: Dockerfile
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
if: ${{ !cancelled() }}
with:
version: v1.62.2
working-directory: src