github.com/goplus/igop@v0.25.0/.github/workflows/go120.yml (about) 1 name: Go1.20 2 3 on: 4 push: 5 branches: [ main ] 6 pull_request: 7 branches: [ main ] 8 9 jobs: 10 11 macos: 12 name: Test Go1.20 for macOS 13 runs-on: macos-13 14 steps: 15 16 - name: Set up Go 1.20 17 uses: actions/setup-go@v2 18 with: 19 go-version: 1.20.x 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 igop 32 run: go install -v ./cmd/igop 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/igoptest 39 40 linux: 41 name: Test Go1.20 for Linux 42 runs-on: ubuntu-latest 43 steps: 44 45 - name: Set up Go 1.20 46 uses: actions/setup-go@v2 47 with: 48 go-version: 1.20.x 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 igop 61 run: go install -v ./cmd/igop 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/igoptest 68 69 windows: 70 name: Test Go1.20 for Windows 71 runs-on: windows-latest 72 steps: 73 74 - name: Set up Go 1.20 75 uses: actions/setup-go@v2 76 with: 77 go-version: 1.20.x 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 igop 90 run: go install -v ./cmd/igop 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/igoptest 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/igoptest