From da37ffa908ab24ddc8a68ce3980038fb9db2b3e2 Mon Sep 17 00:00:00 2001 From: Aleksandr Razumov Date: Sat, 9 Dec 2023 15:11:58 +0300 Subject: [PATCH] ci(compliance): improve --- .github/workflows/compliance.yml | 40 ++++++++++++++++++++++++++++++++ .github/workflows/complience.yml | 20 ---------------- 2 files changed, 40 insertions(+), 20 deletions(-) create mode 100644 .github/workflows/compliance.yml delete mode 100644 .github/workflows/complience.yml diff --git a/.github/workflows/compliance.yml b/.github/workflows/compliance.yml new file mode 100644 index 00000000..a07f8da9 --- /dev/null +++ b/.github/workflows/compliance.yml @@ -0,0 +1,40 @@ +name: 'Compliance' + +on: + push: + branches: [main] + workflow_dispatch: + pull_request: + +permissions: + contents: read + +jobs: + PromQL: + runs-on: ubuntu-latest + steps: + - 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 \ + -end 1m -range 1m | tee result.oteldb.txt || true + + - name: Upload artifact + uses: actions/upload-artifact@v3 + with: + name: result.oteldb.txt + path: dev/local/ch-compliance/result.oteldb.txt + if-no-files-found: error + retention-days: 1 + + - name: Cleanup + run: docker compose -f dev/local/ch-compliance/docker-compose.yml down -v \ No newline at end of file diff --git a/.github/workflows/complience.yml b/.github/workflows/complience.yml deleted file mode 100644 index 96cd25ba..00000000 --- a/.github/workflows/complience.yml +++ /dev/null @@ -1,20 +0,0 @@ -name: 'Complience' - -on: - push: - branches: [main] - workflow_dispatch: - pull_request: - -permissions: - contents: read - -jobs: - promql: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - name: start - run: docker compose -f dev/local/ch-compliance/docker-compose.yml up -d - - name: stop - run: docker compose -f dev/local/ch-compliance/docker-compose.yml down -v \ No newline at end of file