github.com/goplusjs/gopherjs@v1.2.6-0.20211206034512-f187917453b8/.github/workflows/go114.yml (about)

     1  name: Go1.14
     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.14
    13      runs-on: ubuntu-latest
    14      steps:
    15  
    16      - name: Set up Go 1.14
    17        uses: actions/setup-go@v2
    18        with:
    19          go-version: 1.14
    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          go install -v
    34  
    35      - name: Test GopherJS
    36        run: |
    37          diff -u <(echo -n) <(git status --porcelain)
    38          diff -u <(echo -n) <(gofmt -d .)
    39          go vet . # Go package in root directory.
    40          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*".
    41          diff -u <(echo -n) <(go list ./compiler/natives/src/...) # All those packages should have // +build js.
    42          gopherjs install -v net/http # Should build successfully (can't run tests, since only client is supported).
    43          ulimit -s 10000 && gopherjs test --minify -v --short $(go list std | grep -v -f .std_test_pkg_exclusions)
    44          go test -v -race ./...
    45          gopherjs test -v fmt