Instrument the number of data blocks broken down by tenant #4
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: go | |
on: | |
push: | |
branches: | |
- main | |
tags: | |
pull_request: | |
# TODO(bwplotka): Add tests here. | |
jobs: | |
cross-build-check: | |
runs-on: ubuntu-latest | |
name: Go build for different platforms | |
env: | |
GOBIN: /tmp/.bin | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Install Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: 1.21.x | |
- uses: actions/cache@v3 | |
with: | |
path: | | |
~/.cache/go-build | |
~/.cache/golangci-lint | |
~/go/pkg/mod | |
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
restore-keys: | | |
${{ runner.os }}-go- | |
- name: Cross build check | |
run: make crossbuild | |
lint: | |
runs-on: ubuntu-latest | |
name: Linters (Static Analysis) for Go | |
env: | |
GOBIN: /tmp/.bin | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Install Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: 1.21.x | |
- uses: actions/cache@v3 | |
with: | |
path: | | |
~/.cache/go-build | |
~/.cache/golangci-lint | |
~/go/pkg/mod | |
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
restore-keys: | | |
${{ runner.os }}-go- | |
- name: Format. | |
run: make format | |
- name: Linting & vetting | |
run: make go-lint | |
e2e: | |
strategy: | |
fail-fast: false | |
matrix: | |
parallelism: [4] | |
index: [0, 1, 2, 3] | |
runs-on: ubuntu-latest | |
name: Thanos end-to-end tests | |
env: | |
GOBIN: /tmp/.bin | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Install Go. | |
uses: actions/setup-go@v3 | |
with: | |
go-version: 1.21.x | |
- uses: actions/cache@v3 | |
with: | |
path: | | |
~/.cache/go-build | |
~/.cache/golangci-lint | |
~/go/pkg/mod | |
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
- name: Run e2e docker-based tests | |
run: make test-e2e GH_PARALLEL=${{ matrix.parallelism }} GH_INDEX=${{ matrix.index }} |