File tree 1 file changed +47
-0
lines changed
1 file changed +47
-0
lines changed Original file line number Diff line number Diff line change
1
+ # This workflow will build a golang project
2
+ # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
3
+
4
+ name : Go
5
+
6
+ on :
7
+ push :
8
+ branches : [ "main", "fix-build" ]
9
+ pull_request :
10
+ branches : [ "main" ]
11
+
12
+
13
+ jobs :
14
+ build :
15
+ name : Tests on ${{ matrix.os }} ${{ matrix.arch }} with Go ${{ matrix.go-version }}
16
+ strategy :
17
+ matrix :
18
+ os :
19
+ - darwin
20
+ # - linux
21
+ arch : [amd64, arm64]
22
+ go-version :
23
+ # Check the earliest and two trailing versions, to keep
24
+ # maintainance of this file reasonable.
25
+ - stable
26
+ include :
27
+ - os : darwin
28
+ platform : macos-latest
29
+ # - os: linux
30
+ # platform: ubuntu-latest
31
+ runs-on : ${{ matrix.platform }}
32
+ steps :
33
+ - uses : actions/checkout@v4
34
+
35
+ - name : Set up Go
36
+ uses : actions/setup-go@v5
37
+ with :
38
+ go-version : stable
39
+
40
+ - name : Add GOPATH to GITHUB_ENV
41
+ run : echo "GOPATH=$(go env GOPATH)" >>"$GITHUB_ENV"
42
+
43
+ - name : Build
44
+ working-directory : ./browser
45
+ run : |
46
+ go build -v ./...
47
+ go test -v ./...
You can’t perform that action at this time.
0 commit comments