feat: move auth split into seperate function #15
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
fmt: | |
name: fmt | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Go environment | |
uses: actions/[email protected] | |
with: | |
go-version: '1.22.3' | |
- run: test -z $(gofmt -l .) | |
lint: | |
name: lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
with: | |
go-version: '1.22.3' | |
cache: true | |
- uses: actions/checkout@v4 | |
- name: golangci-lint | |
uses: golangci/[email protected] | |
with: | |
version: latest | |
# TODO: Move to use compose based tests | |
unit-test: | |
needs: [fmt, lint] | |
name: unit-test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Go environment | |
uses: actions/[email protected] | |
with: | |
go-version: '1.22.3' | |
- run: go test ./... | |
build: | |
needs: unit-test | |
name: build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: build container | |
run: make build |