-
Notifications
You must be signed in to change notification settings - Fork 29
45 lines (41 loc) · 975 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
40
41
42
43
44
45
name: CI
on:
pull_request:
push:
workflow_dispatch:
jobs:
test:
name: Run unit tests
runs-on: [ubuntu-20.04]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: '1.20'
- name: Run unit tests
run: make test
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
lint:
name: golangci-lint
runs-on: [ubuntu-20.04]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: '1.20'
- name: Run lint
uses: golangci/golangci-lint-action@v3
with:
args: --timeout=10m
only-new-issues: true
typos:
name: Check typos
runs-on: [ubuntu-20.04]
steps:
- uses: actions/checkout@v3
- uses: crate-ci/typos@master
with:
config: hack/typos.toml