github.com/goplus/gossa@v0.3.25/.github/workflows/go115.yml (about) 1 name: Go1.15 2 3 on: 4 push: 5 branches: [ main ] 6 pull_request: 7 branches: [ main ] 8 9 jobs: 10 11 macos: 12 name: Test Go1.15 for macOS 13 runs-on: macos-latest 14 steps: 15 16 - name: Set up Go1.15 17 uses: actions/setup-go@v2 18 with: 19 go-version: 1.15 20 21 - name: Check out code into the Go module directory 22 uses: actions/checkout@v2 23 24 - name: Get dependencies 25 run: | 26 go get -v -t -d ./... 27 28 - name: Build 29 run: go build -v . 30 31 - name: Install gossa 32 run: go install -v ./cmd/gossa 33 34 - name: Go Test 35 run: GOARCH=amd64 go test -race -v . 36 37 - name: Test $GOROOT/test 38 run: GOARCH=amd64 go run ./cmd/gossatest 39 40 linux: 41 name: Test Go1.15 for Linux 42 runs-on: ubuntu-latest 43 steps: 44 45 - name: Set up Go1.15 46 uses: actions/setup-go@v2 47 with: 48 go-version: 1.15 49 50 - name: Check out code into the Go module directory 51 uses: actions/checkout@v2 52 53 - name: Get dependencies 54 run: | 55 go get -v -t -d ./... 56 57 - name: Build 58 run: go build -v . 59 60 - name: Install gossa 61 run: go install -v ./cmd/gossa 62 63 - name: Go Test amd64 64 run: GOARCH=amd64 go test -race -v . 65 66 - name: Test $GOROOT/test 67 run: GOARCH=amd64 go run ./cmd/gossatest 68 69 windows: 70 name: Test Go1.15 for Windows 71 runs-on: windows-latest 72 steps: 73 74 - name: Set up Go1.15 75 uses: actions/setup-go@v2 76 with: 77 go-version: 1.15 78 79 - name: Check out code into the Go module directory 80 uses: actions/checkout@v2 81 82 - name: Get dependencies 83 run: | 84 go get -v -t -d ./... 85 86 - name: Build 87 run: go build -v . 88 89 - name: Install gossa 90 run: go install -v ./cmd/gossa 91 92 - name: Go Test amd64 93 run: | 94 set GOARCH=amd64 95 go test -race -v . 96 97 - name: Test $GOROOT/test amd64 98 run: | 99 set GOARCH=amd64 100 go run ./cmd/gossatest 101 102 - name: Go Test 386 103 run: | 104 set GOARCH=386 105 go test -v . 106 107 - name: Go $GOROOT/test 386 108 run: | 109 set GOARCH=386 110 go run ./cmd/gossatest