github.com/cockroachdb/pebble@v0.0.0-20231214172447-ab4952c5f87b/.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 - name: Assert workspace clean 29 run: scripts/check-workspace-clean.sh 30 31 linux-32bit: 32 name: go-linux-32bit 33 runs-on: ubuntu-latest 34 steps: 35 - uses: actions/checkout@v2 36 37 - name: Set up Go 38 uses: actions/setup-go@v4 39 with: 40 go-version: "1.21" 41 42 - run: GOARCH=386 make test 43 44 linux-crossversion: 45 name: go-linux-crossversion 46 runs-on: ubuntu-latest 47 steps: 48 - uses: actions/checkout@v2 49 50 - name: Set up Go 51 uses: actions/setup-go@v4 52 with: 53 go-version: "1.21" 54 55 - run: make crossversion-meta 56 57 linux-race: 58 name: go-linux-race 59 runs-on: ubuntu-latest 60 steps: 61 - uses: actions/checkout@v2 62 63 - name: Set up Go 64 uses: actions/setup-go@v4 65 with: 66 go-version: "1.21" 67 68 - run: make testrace TAGS= 69 70 linux-no-invariants: 71 name: go-linux-no-invariants 72 runs-on: ubuntu-latest 73 steps: 74 - uses: actions/checkout@v2 75 76 - name: Set up Go 77 uses: actions/setup-go@v4 78 with: 79 go-version: "1.21" 80 81 - run: make test TAGS= 82 83 linux-no-cgo: 84 name: go-linux-no-cgo 85 runs-on: ubuntu-latest 86 steps: 87 - uses: actions/checkout@v2 88 89 - name: Set up Go 90 uses: actions/setup-go@v4 91 with: 92 go-version: "1.21" 93 94 - run: CGO_ENABLED=0 make test TAGS= 95 96 darwin: 97 name: go-macos 98 runs-on: macos-12 99 steps: 100 - uses: actions/checkout@v2 101 102 - name: Set up Go 103 uses: actions/setup-go@v4 104 with: 105 go-version: "1.21" 106 107 - run: make test 108 109 windows: 110 name: go-windows 111 runs-on: windows-latest 112 steps: 113 - uses: actions/checkout@v2 114 115 - name: Set up Go 116 uses: actions/setup-go@v4 117 with: 118 go-version: "1.21" 119 120 - run: go test -v ./... 121 122 bsds: 123 name: go-bsds 124 runs-on: ubuntu-latest 125 steps: 126 - uses: actions/checkout@v2 127 128 - name: Set up Go 129 uses: actions/setup-go@v4 130 with: 131 go-version: "1.21" 132 133 - name: FreeBSD build 134 env: 135 GOOS: freebsd 136 run: go build -v ./... 137 138 - name: NetBSD build 139 env: 140 GOOS: netbsd 141 run: go build -v ./... 142 143 - name: OpenBSD build 144 env: 145 GOOS: openbsd 146 run: go build -v ./... 147 148 go-lint-checks: 149 name: go-lint-checks 150 runs-on: ubuntu-latest 151 steps: 152 - uses: actions/checkout@v2 153 154 - name: Set up Go 155 uses: actions/setup-go@v4 156 with: 157 go-version: "1.21" 158 159 - name: mod-tidy-check 160 run: make mod-tidy-check 161 162 - name: format-check 163 run: make format-check