-
Notifications
You must be signed in to change notification settings - Fork 36
41 lines (40 loc) · 915 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
name: For each commit and PR
on:
push:
pull_request:
jobs:
lint:
runs-on: ubuntu-latest
env:
CGO_ENABLED: 1
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install Go
uses: actions/setup-go@v3
with:
go-version-file: go.mod
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v3
with:
args: -v --config .golangci.yml --timeout=5m
version: latest
- name: make all-checks
run: make all-checks
test:
runs-on: ubuntu-latest
env:
CGO_ENABLED: 1
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 2
- name: Install Go
uses: actions/setup-go@v3
with:
go-version-file: go.mod
- name: make all-tests
run: make all-tests
- name: upload codecov
run: bash <(curl -s https://codecov.io/bash)