-
Notifications
You must be signed in to change notification settings - Fork 3
51 lines (48 loc) · 1.3 KB
/
run-tests.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
name: run-tests
on:
push:
branches:
- 'master'
pull_request:
jobs:
golangci:
name: golangci-lint
concurrency:
group: lint-golangci-${{ github.ref }}
cancel-in-progress: true
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
with:
fetch-depth: 0 # because we use new-from-rev in golangci-lint
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: v1.61.0
- name: golangci-lint-new-code-much-stricter
uses: golangci/golangci-lint-action@v6
with:
version: v1.61.0
args: --verbose --disable-all --new-from-rev=origin/master --enable wrapcheck,stylecheck,funlen,mnd,cyclop
tests:
name: run tests
concurrency:
group: tests-${{ github.ref }}
cancel-in-progress: true
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: Install Go
uses: actions/setup-go@v3
with:
go-version: "1.21"
- name: download dependencies
run: |
go mod download
echo "$HOME/go/bin" >> $GITHUB_PATH
- name: build ydbops
run: make build
- name: run tests
run: go test -v -p 1 ./... -args -ginkgo.v