-
Notifications
You must be signed in to change notification settings - Fork 96
46 lines (42 loc) · 1.15 KB
/
development.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
---
name: development
on:
push:
branches:
- main
pull_request:
permissions:
contents: read
pull-requests: read
concurrency:
group: "${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}"
cancel-in-progress: true
jobs:
qa:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Golang
uses: actions/setup-go@v4
with:
go-version: "^1.21.1"
- name: Lint Go files
uses: golangci/golangci-lint-action@v3
with:
version: v1.53.3
args: -v --color=always --config=.rules/.golangci.yml ./...
- name: Run tests
run: go test -v -race -covermode=atomic -coverpkg=./... -coverprofile=coverage.out ./...
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
- name: Build binaries
uses: goreleaser/goreleaser-action@v4
with:
distribution: goreleaser
version: '1.21.2'
args: release --debug --snapshot --clean
env:
GO_VERSION: "1.21.1"