Skip to content

Fix/issue 400

Fix/issue 400 #881

Workflow file for this run

name: CI
on:
push:
branches:
- main
tags-ignore:
- "**"
pull_request:
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version-file: ./go.mod
- run: go mod download
- run: go build -v ./...
test-unit:
name: Unit Test
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version-file: ./go.mod
- run: go test -v $(go list ./... | grep -v "/infra/")
test-repo:
name: Repository Test
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version-file: ./go.mod
- name: Run repository tests
run: |
go test -v ./infra...
golangci-lint:
name: Lint
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v3
- uses: golangci/golangci-lint-action@v3
with:
version: latest
args: "--timeout=5m"
install-mode: goinstall