Skip to content

feat(phase5): GORM repos for MFA/Session/LoginAttempt; update reposit… #4

feat(phase5): GORM repos for MFA/Session/LoginAttempt; update reposit…

feat(phase5): GORM repos for MFA/Session/LoginAttempt; update reposit… #4

Workflow file for this run

name: CI
on:
push:
branches: [ main, "feat/**", "feature/**", "fix/**" ]
pull_request:
branches: [ main ]
env:
GO_VERSION: "1.21"
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
cache: true
- name: Run go vet
run: go vet ./...
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: latest
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
cache: true
- name: Run tests
run: go test -v -race -coverprofile=coverage.out ./...
- name: Upload coverage
uses: codecov/codecov-action@v4
with:
file: coverage.out
continue-on-error: true
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
cache: true
- name: Build binary
run: go build -v ./cmd/auth-server/...