File tree 1 file changed +29
-2
lines changed
1 file changed +29
-2
lines changed Original file line number Diff line number Diff line change 10
10
branches : [ "main" ]
11
11
12
12
jobs :
13
+ check :
14
+ runs-on : ubuntu-latest
15
+ steps :
16
+ - uses : actions/checkout@v4
17
+
18
+ - name : Set up Node.js
19
+ uses : actions/setup-node@v4
20
+ with :
21
+ node-version : ' 20'
22
+
23
+ - name : Install embedme
24
+ run : npm install -g embedme
25
+
26
+ - name : Verify README.md embedded code
27
+ run : npx embedme --verify README.md
28
+
29
+ - name : Set up Go
30
+ uses : actions/setup-go@v4
31
+ with :
32
+ go-version : ' 1.20'
33
+
34
+ - name : Check formatting
35
+ run : |
36
+ if [ -n "$(go fmt ./...)" ]; then
37
+ echo "Some files are not properly formatted. Please run 'go fmt ./...'"
38
+ exit 1
39
+ fi
13
40
14
41
build :
15
42
strategy :
@@ -24,13 +51,13 @@ jobs:
24
51
- name : Set up Go
25
52
uses : actions/setup-go@v4
26
53
with :
27
- go-version : ' 1.20 '
54
+ go-version : ' 1.23 '
28
55
29
56
- name : Build
30
57
run : go build -v ./...
31
58
32
59
- name : Test with coverage
33
- run : go test -p 1 - v -race -coverprofile=coverage.txt -covermode=atomic ./...
60
+ run : go test -v -race -coverprofile=coverage.txt -covermode=atomic ./...
34
61
35
62
- name : Upload coverage to Codecov
36
63
if : matrix.os == 'ubuntu-24.04'
You can’t perform that action at this time.
0 commit comments