github.com/cockroachdb/pebble@v1.1.1-0.20240513155919-3622ade60459/.github/workflows/ci.yaml (about) 1 name: Test 2 3 on: 4 push: 5 branches: 6 - master 7 - crl-release-* 8 pull_request: 9 branches: 10 - master 11 - crl-release-* 12 13 jobs: 14 15 linux: 16 name: go-linux 17 runs-on: ubuntu-latest 18 steps: 19 - uses: actions/checkout@v2 20 21 - name: Set up Go 22 uses: actions/setup-go@v4 23 with: 24 go-version: "1.21" 25 26 - run: make test generate 27 28 linux-32bit: 29 name: go-linux-32bit 30 runs-on: ubuntu-latest 31 steps: 32 - uses: actions/checkout@v2 33 34 - name: Set up Go 35 uses: actions/setup-go@v4 36 with: 37 go-version: "1.21" 38 39 - run: GOARCH=386 make test 40 41 linux-crossversion: 42 name: go-linux-crossversion 43 runs-on: ubuntu-latest 44 steps: 45 - uses: actions/checkout@v2 46 47 - name: Set up Go 48 uses: actions/setup-go@v4 49 with: 50 go-version: "1.21" 51 52 - run: make crossversion-meta 53 54 linux-race: 55 name: go-linux-race 56 runs-on: ubuntu-latest 57 steps: 58 - uses: actions/checkout@v2 59 60 - name: Set up Go 61 uses: actions/setup-go@v4 62 with: 63 go-version: "1.21" 64 65 - run: make testrace TAGS= 66 67 linux-no-invariants: 68 name: go-linux-no-invariants 69 runs-on: ubuntu-latest 70 steps: 71 - uses: actions/checkout@v2 72 73 - name: Set up Go 74 uses: actions/setup-go@v4 75 with: 76 go-version: "1.21" 77 78 - run: make test TAGS= 79 80 linux-no-cgo: 81 name: go-linux-no-cgo 82 runs-on: ubuntu-latest 83 steps: 84 - uses: actions/checkout@v2 85 86 - name: Set up Go 87 uses: actions/setup-go@v4 88 with: 89 go-version: "1.21" 90 91 - run: CGO_ENABLED=0 make test TAGS= 92 93 darwin: 94 name: go-macos 95 runs-on: macos-12 96 steps: 97 - uses: actions/checkout@v2 98 99 - name: Set up Go 100 uses: actions/setup-go@v4 101 with: 102 go-version: "1.21" 103 104 - run: make test 105 106 windows: 107 name: go-windows 108 runs-on: windows-latest 109 steps: 110 - uses: actions/checkout@v2 111 112 - name: Set up Go 113 uses: actions/setup-go@v4 114 with: 115 go-version: "1.21" 116 117 - run: go test -v ./... 118 119 bsds: 120 name: go-bsds 121 runs-on: ubuntu-latest 122 steps: 123 - uses: actions/checkout@v2 124 125 - name: Set up Go 126 uses: actions/setup-go@v4 127 with: 128 go-version: "1.21" 129 130 - name: FreeBSD build 131 env: 132 GOOS: freebsd 133 run: go build -v ./... 134 135 - name: NetBSD build 136 env: 137 GOOS: netbsd 138 run: go build -v ./... 139 140 - name: OpenBSD build 141 env: 142 GOOS: openbsd 143 run: go build -v ./... 144 145 go-lint-checks: 146 name: go-lint-checks 147 runs-on: ubuntu-latest 148 steps: 149 - uses: actions/checkout@v2 150 151 - name: Set up Go 152 uses: actions/setup-go@v4 153 with: 154 go-version: "1.21" 155 156 - name: mod-tidy-check 157 run: make mod-tidy-check 158 159 - name: format-check 160 run: make format-check