handle large query ranges on azure deadlocks panels (#1462) #906
This file contains hidden or 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: Build | |
permissions: | |
contents: read | |
on: | |
push: | |
branches: | |
- main | |
- master | |
pull_request: | |
jobs: | |
setup: | |
name: Setup tools | |
runs-on: ubuntu-latest | |
outputs: | |
cache-hit: ${{ steps.tools-cache.outputs.cache-hit }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
persist-credentials: false | |
- name: Setup Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: 1.23 | |
- name: Tools cache | |
id: tools-cache | |
uses: actions/cache@v4 | |
with: | |
path: | | |
~/go/bin | |
/usr/local/bin/promtool | |
key: ${{ runner.os }}-tools-${{ hashFiles('Makefile') }} | |
- name: Install CI dependencies | |
if: steps.tools-cache.outputs.cache-hit != 'true' | |
run: make install-ci-deps | |
lint-fmt: | |
name: Lint and Format | |
needs: setup | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
persist-credentials: false | |
- name: Setup Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: 1.23 | |
- name: Restore Tools cache | |
uses: actions/cache@v4 | |
with: | |
path: | | |
~/go/bin | |
/usr/local/bin/promtool | |
key: ${{ runner.os }}-tools-${{ hashFiles('Makefile') }} | |
- name: Lint and Format | |
run: make lint-fmt | |
tests: | |
name: Run Tests | |
needs: setup | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
persist-credentials: false | |
- name: Setup Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: 1.23 | |
- name: Restore Tools cache | |
uses: actions/cache@v4 | |
with: | |
path: | | |
~/go/bin | |
/usr/local/bin/promtool | |
key: ${{ runner.os }}-tools-${{ hashFiles('Makefile') }} | |
- name: Run Tests | |
run: make tests |