File tree Expand file tree Collapse file tree 2 files changed +42
-15
lines changed Expand file tree Collapse file tree 2 files changed +42
-15
lines changed Original file line number Diff line number Diff line change 38
38
with :
39
39
go-version-file : ${{ github.workspace }}/go.mod
40
40
41
- - name : Initialize dependencies and linters
42
- run : make init
43
-
44
- - name : Diff
45
- run : |
46
- make format
47
- git diff --exit-code
48
-
49
41
- name : Test
50
42
run : |
51
43
TEST_MONGODB_IMAGE=${{ matrix.image }} make test-cluster
52
44
make test-race
53
45
make test-cluster-clean
54
-
55
- - name : Run checks/linters
56
- run : |
57
- # use GITHUB_TOKEN because only it has access to GitHub Checks API
58
- bin/golangci-lint run -c=.golangci-required.yml --out-format=line-number | env REVIEWDOG_GITHUB_API_TOKEN=${{ secrets.GITHUB_TOKEN }} bin/reviewdog -f=golangci-lint -level=error -reporter=github-pr-check
59
- bin/golangci-lint run -c=.golangci.yml --out-format=line-number | env REVIEWDOG_GITHUB_API_TOKEN=${{ secrets.GITHUB_TOKEN }} bin/reviewdog -f=golangci-lint -level=error -reporter=github-pr-review
60
- make check-license
Original file line number Diff line number Diff line change
1
+ name : Lint
2
+
3
+ on :
4
+ schedule :
5
+ # run every Sunday
6
+ - cron : ' 0 13 * * 0'
7
+ push :
8
+ branches :
9
+ - main
10
+ - release-0.1x
11
+ tags :
12
+ - v[0-9]+.[0-9]+.[0-9]+*
13
+ pull_request :
14
+
15
+ jobs :
16
+ lint :
17
+ name : Lint Check
18
+
19
+ runs-on : ubuntu-latest
20
+
21
+ steps :
22
+ - name : Checkout code
23
+ uses : actions/checkout@v3
24
+
25
+ - name : Set up Go
26
+ uses : actions/setup-go@v4
27
+ with :
28
+ go-version-file : ${{ github.workspace }}/go.mod
29
+
30
+ - name : Initialize dependencies and linters
31
+ run : make init
32
+
33
+ - name : Diff
34
+ run : |
35
+ make format
36
+ git diff --exit-code
37
+ - name : Run checks/linters
38
+ run : |
39
+ # use GITHUB_TOKEN because only it has access to GitHub Checks API
40
+ bin/golangci-lint run -c=.golangci-required.yml --out-format=line-number | env REVIEWDOG_GITHUB_API_TOKEN=${{ secrets.GITHUB_TOKEN }} bin/reviewdog -f=golangci-lint -level=error -reporter=github-pr-check
41
+ bin/golangci-lint run -c=.golangci.yml --out-format=line-number | env REVIEWDOG_GITHUB_API_TOKEN=${{ secrets.GITHUB_TOKEN }} bin/reviewdog -f=golangci-lint -level=error -reporter=github-pr-review
42
+ make check-license
You can’t perform that action at this time.
0 commit comments