storj.io/minio@v0.0.0-20230509071714-0cbc90f649b1/.github/workflows/go.yml (about) 1 name: Go 2 3 on: 4 pull_request: 5 branches: 6 - master 7 8 jobs: 9 build: 10 name: Test on Go ${{ matrix.go-version }} and ${{ matrix.os }} 11 runs-on: ${{ matrix.os }} 12 strategy: 13 matrix: 14 go-version: [1.16.x] 15 os: [ubuntu-latest, windows-latest] 16 steps: 17 - uses: actions/checkout@v2 18 - uses: actions/setup-node@v1 19 with: 20 node-version: '12' 21 - uses: actions/setup-go@v2 22 with: 23 go-version: ${{ matrix.go-version }} 24 - name: Build on ${{ matrix.os }} 25 if: matrix.os == 'windows-latest' 26 env: 27 CGO_ENABLED: 0 28 GO111MODULE: on 29 run: | 30 go build --ldflags="-s -w" -o %GOPATH%\bin\minio.exe 31 go test -v --timeout 50m ./... 32 - name: Build on ${{ matrix.os }} 33 if: matrix.os == 'ubuntu-latest' 34 env: 35 CGO_ENABLED: 0 36 GO111MODULE: on 37 run: | 38 sudo sysctl net.ipv6.conf.all.disable_ipv6=0 39 sudo sysctl net.ipv6.conf.default.disable_ipv6=0 40 sudo apt-get install devscripts shellcheck 41 nancy_version=$(curl --retry 10 -Ls -o /dev/null -w "%{url_effective}" https://github.com/sonatype-nexus-community/nancy/releases/latest | sed "s/https:\/\/github.com\/sonatype-nexus-community\/nancy\/releases\/tag\///") 42 curl -L -o nancy https://github.com/sonatype-nexus-community/nancy/releases/download/${nancy_version}/nancy-${nancy_version}-linux-amd64 && chmod +x nancy 43 go list -m all | ./nancy sleuth 44 make 45 make test-race 46 make crosscompile 47 make verify 48 make verify-healing 49 cd browser && npm install && npm run test && cd .. 50 bash -c 'shopt -s globstar; shellcheck mint/**/*.sh'