-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (37 loc) · 961 Bytes
/
ci.yml
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
name: CI
on: [ push, workflow_dispatch ]
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: stable
- name: Lint
uses: golangci/golangci-lint-action@v3
with:
version: latest
- name: Build
run: make build
- name: Test
run: make test
release:
name: Release
needs: [ test ]
runs-on: ubuntu-latest
if: github.event_name == 'push' && github.ref_type == 'branch' && github.ref_name == 'master'
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: stable
- name: Coverage
uses: ncruces/go-coverage-report@main
- name: Tag
uses: mathieudutour/github-tag-action@v6.1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}