github.com/goplusjs/reflectx@v0.5.4/.github/workflows/go116.yml (about) 1 name: Go1.16 2 3 on: 4 push: 5 branches: [ main ] 6 pull_request: 7 branches: [ main ] 8 9 jobs: 10 11 test: 12 name: Test Go1.16 13 runs-on: macos-10.15 14 steps: 15 16 - name: Setup Node.js environment 17 uses: actions/setup-node@v2.1.2 18 with: 19 node-version: 10.0.0 20 21 - name: Set up Go 1.16 22 uses: actions/setup-go@v2 23 with: 24 go-version: 1.16 25 26 - name: Install GopherJS 27 run: | 28 go version 29 mkdir -p $HOME/go/src/github.com/goplusjs/gopherjs 30 git clone https://github.com/goplusjs/gopherjs $HOME/go/src/github.com/goplusjs/gopherjs 31 cd $HOME/go/src/github.com/goplusjs/gopherjs 32 go install -v 33 npm install # Install our (dev) dependencies from package.json. 34 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 35 36 - name: Check out code into the Go module directory 37 uses: actions/checkout@v2 38 39 - name: Get dependencies 40 run: | 41 go get -v -t -d ./... 42 43 - name: Build 44 run: go build -v . 45 46 - name: Go Test 47 run: go test -race -v . 48 49 - name: GopherJS Test 50 run: gopherjs test -v