@@ -15,7 +15,7 @@ concurrency:
1515 cancel-in-progress : true
1616
1717env :
18- GO_VERSION : 1.19.13
18+ GO_VERSION : 1.20.14
1919 NODE_VERSION : 18
2020 GOLANGCI_VERSION : v1.53.3
2121 SOURCE_MAP_SUPPORT : true
4242 - name : Check go.mod
4343 working-directory : ${{ env.GOPHERJS_PATH }}
4444 run : go mod tidy && git diff --exit-code
45- - name : Check natives build tags
46- working-directory : ${{ env.GOPHERJS_PATH }}
47- run : |
48- echo "Any following packages have at least one file that is missing //go:build js"
49- diff -u <(echo -n) <(go list ./compiler/natives/src/...)
5045
5146 go_tests :
5247 name : Go Tests
5550 - uses : actions/checkout@v4
5651 with :
5752 path : ${{ env.GOPHERJS_PATH }}
58- - name : Copy Actions
59- run : cp -r ${{ env.GOPHERJS_PATH }}/.github .
6053 - name : Setup Go
6154 uses : actions/setup-go@v5
6255 with :
6558 working-directory : ${{ env.GOPHERJS_PATH }}
6659 shell : bash
6760 run : echo "GOROOT=$(go env GOROOT)" >> $GITHUB_ENV
68- - name : Setup Node.js
69- uses : actions/setup-node@v4
70- with :
71- node-version : ${{ env.NODE_VERSION }}
72- - name : Install Node.js for Linux
73- working-directory : ${{ env.GOPHERJS_PATH }}
74- shell : bash
75- # Install required Node.js packages including optional (node-syscall).
76- run : |
77- npm install --include=optional --no-package-lock
78- - name : Setup Node.js Environment
79- working-directory : ${{ env.GOPHERJS_PATH }}
80- shell : bash
81- # Make nodejs able to require installed modules from any working path.
82- run : echo "NODE_PATH=$(npm root)" >> $GITHUB_ENV
83- - name : Install GopherJS
84- working-directory : ${{ env.GOPHERJS_PATH }}
85- shell : bash
86- run : go install -v
87- - name : Setup information
88- shell : bash
89- run : |
90- echo ::notice::go version: $(go version)
91- echo ::notice::node version: $(node -v)
92- echo ::notice::npm version: $(npm -v)
93- echo ::notice::gopherjs version: $(gopherjs version)
9461 - name : Run Tests
9562 working-directory : ${{ env.GOPHERJS_PATH }}
9663 run : go test -v -race ./...
0 commit comments