-
Notifications
You must be signed in to change notification settings - Fork 3
46 lines (36 loc) · 889 Bytes
/
ci.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: Test, Vet, and Coverage
on:
push:
branches: [ "master" ]
tags: [ "v*" ]
pull_request:
branches: [ "master" ]
env:
GITHUB_ORG: ${{ github.repository_owner }}
jobs:
lint-vet-build-test:
runs-on: ubuntu-latest
strategy:
matrix:
go-version: ['1.22']
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Run go mod download
run: make install
- name: Lint Go Code
uses: golangci/golangci-lint-action@v3
with:
version: latest
- name: Run go vet
run: make vet
- name: Run Tests and Generate Coverage
run: make coverage
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}