File tree Expand file tree Collapse file tree 3 files changed +22
-9
lines changed Expand file tree Collapse file tree 3 files changed +22
-9
lines changed Original file line number Diff line number Diff line change 1
1
on : [push, pull_request]
2
2
name : Test
3
+ permissions : {}
3
4
jobs :
4
5
test :
5
6
strategy :
6
7
matrix :
7
- go-version : [1.14 .x, 1.15.x, 1.16 .x]
8
+ go-version : [1.18 .x,1.19 .x]
8
9
platform : [ubuntu-latest, macos-latest, windows-latest]
9
10
runs-on : ${{ matrix.platform }}
10
11
steps :
11
12
- name : Install Go
12
- uses : actions/setup-go@v1
13
+ uses : actions/setup-go@v3
13
14
with :
14
15
go-version : ${{ matrix.go-version }}
15
16
- name : Checkout code
16
- uses : actions/checkout@v2
17
+ uses : actions/checkout@v3
17
18
- name : Test
18
- run : go test ./...
19
+ run : make test
Original file line number Diff line number Diff line change 1
1
on : [push, pull_request]
2
- name : Test
2
+ name : Test JS
3
+ permissions : {}
3
4
jobs :
4
5
test :
5
6
strategy :
6
7
matrix :
7
- go-version : [1.14 .x, 1.15.x, 1.16 .x]
8
+ go-version : [1.18 .x,1.19 .x]
8
9
runs-on : ubuntu-latest
9
10
steps :
10
11
- name : Install Go
11
- uses : actions/setup-go@v1
12
+ uses : actions/setup-go@v3
12
13
with :
13
14
go-version : ${{ matrix.go-version }}
14
15
15
16
- name : Install wasmbrowsertest
16
17
run : |
17
- go get github.com/agnivade/wasmbrowsertest
18
+ go install github.com/agnivade/wasmbrowsertest@latest
18
19
mv $HOME/go/bin/wasmbrowsertest $HOME/go/bin/go_js_wasm_exec
19
20
20
21
- name : Checkout code
21
- uses : actions/checkout@v2
22
+ uses : actions/checkout@v3
22
23
23
24
- name : Test
24
25
run : go test -exec="$HOME/go/bin/go_js_wasm_exec" ./...
Original file line number Diff line number Diff line change
1
+ # Go parameters
2
+ GOCMD = go
3
+ GOTEST = $(GOCMD ) test
4
+
5
+ .PHONY : test
6
+ test :
7
+ $(GOTEST ) -race ./...
8
+
9
+ test-coverage :
10
+ echo " " > $(COVERAGE_REPORT ) ; \
11
+ $(GOTEST ) -coverprofile=$(COVERAGE_REPORT ) -coverpkg=./... -covermode=$(COVERAGE_MODE ) ./...
You can’t perform that action at this time.
0 commit comments