github.com/goplusjs/gopherjs@v1.2.6-0.20211206034512-f187917453b8/.github/workflows/go112.yml (about) 1 name: Go1.12 2 3 on: 4 push: 5 branches: [ master ] 6 pull_request: 7 branches: [ master ] 8 9 jobs: 10 11 test: 12 name: Test on Go 1.12 13 runs-on: ubuntu-latest 14 steps: 15 16 - name: Set up Go 1.12 17 uses: actions/setup-go@v2 18 with: 19 go-version: 1.12 20 21 - name: Setup Node.js environment 22 uses: actions/setup-node@v2.1.2 23 with: 24 node-version: 10.0.0 25 26 - name: Check out code into the Go module directory 27 uses: actions/checkout@v2 28 29 - name: Install GopherJS 30 run: | 31 npm install # Install our (dev) dependencies from package.json. 32 cd node-syscall && ../node_modules/node-gyp/bin/node-gyp.js rebuild rebuild && mkdir -p ~/.node_libraries && cp build/Release/syscall.node ~/.node_libraries/syscall.node && cd .. 33 export GO111MODULE="on" 34 go install -v 35 36 - name: Test GopherJS 37 run: | 38 diff -u <(echo -n) <(git status --porcelain) 39 diff -u <(echo -n) <(gofmt -d .) 40 go vet . # Go package in root directory. 41 for d in */; do echo ./$d...; done | grep -v ./doc | grep -v ./tests | grep -v ./node | xargs go vet # All subdirectories except "doc", "tests", "node*". 42 diff -u <(echo -n) <(go list ./compiler/natives/src/...) # All those packages should have // +build js. 43 gopherjs install -v net/http # Should build successfully (can't run tests, since only client is supported). 44 ulimit -s 10000 && gopherjs test --minify -v --short $(go list std | grep -v -f .std_test_pkg_exclusions) 45 go test -v -race ./... 46 gopherjs test -v fmt