File tree Expand file tree Collapse file tree 3 files changed +30
-2
lines changed Expand file tree Collapse file tree 3 files changed +30
-2
lines changed Original file line number Diff line number Diff line change
1
+ name : License Header Check
2
+
3
+ on :
4
+ workflow_call :
5
+
6
+ jobs :
7
+ license-check :
8
+ runs-on : ubuntu-latest
9
+ steps :
10
+ - name : Checkout code
11
+ uses : actions/checkout@v4
12
+ - name : Set up Go
13
+ uses : actions/setup-go@v5
14
+ go-version-file : " ${{ github.workspace }}/go.mod"
15
+ - name : Install addlicense
16
+ run : go install github.com/google/addlicense@latest
17
+ - name : Check license headers
18
+ run : |
19
+ $(go env GOPATH)/bin/addlicense \
20
+ -check \
21
+ -l apache \
22
+ -c "MongoDB Inc" \
23
+ -ignore "**/*.md,**/*.yaml,**/*.yml" .
Original file line number Diff line number Diff line change 51
51
uses : ./.github/workflows/test-unit.yml
52
52
secrets : inherit
53
53
54
+ license-header-check :
55
+ needs :
56
+ - run-tests
57
+ uses : ./.github/workflows/license-header-check.yml
58
+
54
59
check-licenses :
55
60
needs :
56
61
- run-tests
Original file line number Diff line number Diff line change 30
30
ref : ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.branchName || github.head_ref }}
31
31
32
32
- name : Setup GO
33
- uses : actions/setup-go@v4
33
+ uses : actions/setup-go@v5
34
34
with :
35
- go-version : 1.23
35
+ go-version-file : " ${{ github.workspace }}/go.mod "
36
36
37
37
- name : Install Ginkgo
38
38
run : go install github.com/onsi/ginkgo/v2/ginkgo@latest
You can’t perform that action at this time.
0 commit comments