github.com/goplus/reflectx@v1.2.2/.github/workflows/go117.yml (about) 1 name: Go1.17 2 3 on: 4 push: 5 branches: [ main ] 6 pull_request: 7 branches: [ main ] 8 9 jobs: 10 11 macos: 12 name: Test Go1.17 for macOS 13 runs-on: macos-latest 14 steps: 15 16 - name: Set up Go 1.17 17 uses: actions/setup-go@v2 18 with: 19 go-version: 1.17 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: Go Test 32 run: go test -race -v . 33 34 linux: 35 name: Test Go1.17 for Linux 36 runs-on: ubuntu-latest 37 steps: 38 39 - name: Set up Go 1.17 40 uses: actions/setup-go@v2 41 with: 42 go-version: 1.17 43 44 - name: Check out code into the Go module directory 45 uses: actions/checkout@v2 46 47 - name: Get dependencies 48 run: | 49 go get -v -t -d ./... 50 51 - name: Build 52 run: go build -v . 53 54 - name: Go Test amd64 55 run: go test -race -v . 56 57 - name: Go Test 386 58 run: GOARCH=386 go test -v . 59 60 windows: 61 name: Test Go1.17 for Windows 62 runs-on: windows-latest 63 steps: 64 65 - name: Set up Go 1.17 66 uses: actions/setup-go@v2 67 with: 68 go-version: 1.17 69 70 - name: Check out code into the Go module directory 71 uses: actions/checkout@v2 72 73 - name: Get dependencies 74 run: | 75 go get -v -t -d ./... 76 77 - name: Build 78 run: go build -v . 79 80 - name: Go Test amd64 81 run: go test -race -v . 82 83 - name: Go Test 386 84 run: | 85 set GOARCH=386 86 go test -v .