Skip to content

ci(compliance): use json #5

ci(compliance): use json

ci(compliance): use json #5

Workflow file for this run

name: 'Compliance'
on:
push:
branches: [main]
workflow_dispatch:
pull_request:
permissions:
contents: read
jobs:
PromQL:
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: stable
cache: false
- uses: docker/setup-buildx-action@v3
- uses: actions/checkout@v4
- name: Start
run: docker compose up -d
working-directory: dev/local/ch-compliance
- name: Wait
run: go run ./cmd/compliance-wait -wait 10s
working-directory: dev/local/ch-compliance
- name: Test
working-directory: dev/local/ch-compliance
run: |
go run github.com/go-faster/oteldb/cmd/promql-compliance-tester \
-config-file promql-test-queries.yml -config-file test-oteldb.yml \
-output-format json \
-end 1m -range 1m | tee result.oteldb.json || true
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: result.oteldb.json
path: dev/local/ch-compliance/result.oteldb.json
if-no-files-found: error
retention-days: 1
- name: Cleanup
working-directory: dev/local/ch-compliance
run: docker compose down -v