File tree Expand file tree Collapse file tree 2 files changed +19
-7
lines changed Expand file tree Collapse file tree 2 files changed +19
-7
lines changed Original file line number Diff line number Diff line change
1
+ on :
2
+ pull_request :
3
+ branches :
4
+ - main
5
+ push :
6
+ branches :
7
+ - main
8
+ jobs :
9
+ build :
10
+ runs-on : ubuntu-latest
11
+ steps :
12
+ - uses : actions/checkout@v4
13
+ with :
14
+ fetch-depth : 0
15
+ - uses : actions/setup-go@v5
16
+ - name : Build
17
+ run : make ci
Original file line number Diff line number Diff line change @@ -25,16 +25,11 @@ packages/${SDK}/${EXEC}.wasm: packages/${SDK}/wasm_exec.js
25
25
26
26
.PHONY : fmt
27
27
fmt :
28
- goimports -w .
28
+ go run github.com/RiemaLabs/nubit-ci/cmd/nubitci-lint@latest -only go-format -w
29
29
30
30
.PHONY : ci
31
31
ci :
32
- test -z " $( goimports -l .) " || (echo " ⚠️ Run \` make fmt\` to format these files:" && goimports -l . && exit 1)
33
- if [ -n " $$ (golangci-lint run)" ]; then \
34
- echo " ⚠️ Please fix those errors:" && golangci-lint run --show-stats && exit 1; \
35
- else \
36
- echo " ✅ Passed import and lint check!" ; \
37
- fi
32
+ go run github.com/RiemaLabs/nubit-ci/cmd/nubitci-lint@latest
38
33
39
34
.PHONY : clean
40
35
clean :
You can’t perform that action at this time.
0 commit comments