Skip to content

Commit

Permalink
axiom: initial github action
Browse files Browse the repository at this point in the history
  • Loading branch information
tsenart committed Sep 30, 2023
1 parent c3d8a58 commit 3811351
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/axiom-clickbench.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Clickbench Axiom

on:
push:
branches:
- main
schedule:
- cron: "*/10 * * * *"
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
env:
AXIOM_URL: ${{ secrets.AXIOM_URL }}
AXIOM_ORG_ID: ${{ secrets.AXIOM_ORG_ID }}
AXIOM_TOKEN: ${{ secrets.AXIOM_TOKEN }}
AXIOM_TRACE_URL: ${{ secrets.AXIOM_TRACE_URL }}
AXIOM_RESULTS_DATASET: ${{ secrets.AXIOM_RESULTS_DATASET }}

steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.21'

- name: Format Check
run: |
set -euo pipefail
go install golang.org/x/tools/cmd/goimports@latest
goimports -w .
git diff --exit-code
- name: Vet
run: go vet ./...

- name: Run axiom-clickbench
run: |
cd axiom/
go build
./axiom-clickbench run -trace-url=$AXIOM_TRACE_URL < queries.apl | tee events.json
- name: Ingest events into results dataset
uses: axiomhq/cli
run: |
axiom ingest $AXIOM_RESULTS_DATASET --content-type json < events.json

0 comments on commit 3811351

Please sign in to comment.