File tree 1 file changed +32
-4
lines changed
1 file changed +32
-4
lines changed Original file line number Diff line number Diff line change @@ -13,17 +13,45 @@ jobs:
13
13
- uses : actions/checkout@v4
14
14
with :
15
15
fetch-depth : 0
16
- - uses : wagoid/commitlint-github-action@v4
17
- with :
18
- firstParent : true
16
+
17
+ - uses : wagoid/commitlint-github-action@v6
18
+
19
19
golangci :
20
- name : lint
20
+ needs : commit_lint
21
21
runs-on : ubuntu-latest
22
22
steps :
23
23
- uses : actions/checkout@v4
24
+
24
25
- name : Run golangci-lint
25
26
uses : golangci/golangci-lint-action@v6
26
27
with :
27
28
version : latest
28
29
only-new-issues : false
29
30
args : --timeout 2m --config .golangci.yaml
31
+
32
+ go_test :
33
+ runs-on : ubuntu-latest
34
+ needs : golangci
35
+ steps :
36
+ - uses : actions/checkout@v4
37
+
38
+ - name : Run unit test
39
+ run : go test
40
+
41
+ checkhealth :
42
+ runs-on : ubuntu-latest
43
+ needs : go_test
44
+ steps :
45
+ - uses : actions/checkout@v4
46
+
47
+ - name : Run checkhealth
48
+ run : make checkhealth
49
+
50
+ - id : pr_calculate
51
+ run : echo "pr=${{ github.ref_name }}" | sed "s/\//#/" >> "$GITHUB_OUTPUT"
52
+
53
+ - uses : actions/upload-artifact@v4
54
+ with :
55
+ name : daje-${{ steps.pr_calculate.outputs.pr }}-${{ github.sha }}
56
+ path : bin/daje
57
+
You can’t perform that action at this time.
0 commit comments