Server Regression #1005
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: Server Regression | |
on: | |
schedule: | |
- cron: "0 0 * * *" | |
workflow_dispatch: | |
# HINT(lukasmalkmus): Make sure the workflow is only ever run once at a time. | |
concurrency: | |
group: ${{ github.workflow }} | |
cancel-in-progress: true | |
jobs: | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
# Don't run on forks. | |
if: github.repository_owner == 'axiomhq' | |
# HINT(lukasmalkmus): Make sure the job is only ever run once per | |
# environment, across all active jobs and workflows. | |
concurrency: | |
group: ${{ matrix.environment }} | |
cancel-in-progress: false | |
strategy: | |
matrix: | |
go: | |
- "1.22" | |
- "1.23" | |
environment: | |
- development | |
- staging | |
include: | |
- environment: development | |
slug: DEV | |
- environment: staging | |
slug: STAGING | |
env: | |
AXIOM_URL: ${{ secrets[format('TESTING_{0}_API_URL', matrix.slug)] }} | |
AXIOM_TOKEN: ${{ secrets[format('TESTING_{0}_TOKEN', matrix.slug)] }} | |
AXIOM_ORG_ID: ${{ secrets[format('TESTING_{0}_ORG_ID', matrix.slug)] }} | |
AXIOM_DATASET_SUFFIX: ${{ github.run_id }}-${{ matrix.go }} | |
TELEMETRY_TRACES_URL: ${{ secrets.TELEMETRY_TRACES_URL }} | |
TELEMETRY_TRACES_TOKEN: ${{ secrets.TELEMETRY_TRACES_TOKEN }} | |
TELEMETRY_TRACES_DATASET: ${{ vars[format('TELEMETRY_{0}_TRACES_DATASET', matrix.slug)] }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: ${{ matrix.go }} | |
- run: make test-integration | |
- name: Cleanup (On Test Failure) | |
if: failure() | |
run: | | |
curl -sL $(curl -s https://api.github.com/repos/axiomhq/cli/releases/tags/v0.10.0 | grep "http.*linux_amd64.tar.gz" | awk '{print $2}' | sed 's|[\"\,]*||g') | tar xzvf - --strip-components=1 --wildcards -C /usr/local/bin "axiom_*_linux_amd64/axiom" | |
axiom dataset list -f=json | jq '.[] | select(.id | contains("${{ github.run_id }}-${{ matrix.go }}")).id' | xargs -r -n1 axiom dataset delete -f |