github.com/smallnest/goroutine@v1.1.1/.github/workflows/go.yml (about) 1 name: Test 2 3 on: 4 push: 5 branches: [ master ] 6 pull_request: 7 branches: [ master ] 8 9 jobs: 10 test: 11 strategy: 12 matrix: 13 os: [ubuntu-latest, macos-latest] 14 go-version: 15 - 1.14.x 16 - 1.15.x 17 - 1.16.x 18 - 1.17.x 19 - 1.18.x 20 - 1.19.x 21 - 1.20.x 22 - 1.21.x 23 - tip 24 runs-on: ${{ matrix.os }} 25 26 steps: 27 - name: Install Go 28 uses: actions/setup-go@v2 29 with: 30 go-version: ${{ matrix.go-version }} 31 32 - name: Checkout code 33 uses: actions/checkout@v2 34 35 - name: Test 36 run: go test ./... 37 38 test_race: 39 strategy: 40 matrix: 41 os: [ubuntu-latest, macos-latest] 42 go-version: 43 - 1.14.x 44 - 1.15.x 45 - 1.16.x 46 - 1.17.x 47 - 1.18.x 48 - 1.19.x 49 - 1.20.x 50 - 1.21.x 51 - tip 52 runs-on: ${{ matrix.os }} 53 54 steps: 55 - name: Install Go 56 uses: actions/setup-go@v2 57 with: 58 go-version: ${{ matrix.go-version }} 59 60 - name: Checkout code 61 uses: actions/checkout@v2 62 63 - name: Test Race 64 run: go test -race ./...