generated from dnnrly/goclitem
-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (50 loc) · 1.28 KB
/
pr.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
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Validate for PR
on:
push:
branches:
- main
- master
pull_request:
types: [opened, synchronize, reopened]
jobs:
validate:
name: Validate
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-go@v4
with:
go-version: '1.21'
cache: false
- name: Install dependencies
run: make deps
- name: Unit test
run: make ci-test
- name: Check documentation
run: make check-docs
- name: Acceptance test
run: make acceptance-test
- name: Collate coverage data
run: make coverage-report
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: tmp/coverage/ci-test.txt,tmp/coverage/acceptance.txt
verbose: true
check-release:
name: Check release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: '1.21'
- name: Check release build
uses: goreleaser/goreleaser-action@v2
with:
distribution: goreleaser
version: latest
args: build --rm-dist --skip-validate --snapshot