Skip to content

v.2.0 (clean arch)

v.2.0 (clean arch) #58

Workflow file for this run

name: Go
on:
push:
branches:
- master
paths-ignore:
- "**/*.md"
- "Makefile"
pull_request:
branches:
- master
paths-ignore:
- "**/*.md"
- "Makefile"
jobs:
build:
name: Build, Test, Coverage
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.21
- name: Lint
uses: golangci/golangci-lint-action@v6
- name: Build
run: go build -v ./...
- name: Test & Coverage
run: go test -v -coverprofile=coverage.out -covermode=atomic ./...
- name: Upload coverage to Codecov
uses: codecov/[email protected]
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}