From 245bd9184d4fc310271e5e6ffcedf26c874d707e Mon Sep 17 00:00:00 2001 From: qrort <31865255+qrort@users.noreply.github.com> Date: Thu, 22 Aug 2024 14:43:15 +0300 Subject: [PATCH] readOperations fix & action improvement (#45) --- .github/workflows/go-test.yml | 18 ++++++++++++++++-- internal/connectors/db/yql/queries/read.go | 2 +- 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/.github/workflows/go-test.yml b/.github/workflows/go-test.yml index a4bdcb45..139ab0ea 100644 --- a/.github/workflows/go-test.yml +++ b/.github/workflows/go-test.yml @@ -8,6 +8,8 @@ on: jobs: test: runs-on: ubuntu-latest + outputs: + job-summary: ${{ steps.job-summary.outputs.job-summary }} steps: - uses: actions/checkout@v4 @@ -16,6 +18,11 @@ jobs: with: go-version-file: go.mod + - name: Cache go modules + uses: magnetikonline/action-golang-cache@v5 + with: + go-version-file: go.mod + - name: Install Protoc uses: arduino/setup-protoc@v3 @@ -34,16 +41,23 @@ jobs: - name: Test uses: robherley/go-test-action@v0.4.1 + with: + testArguments: './... -race --timeout=10s' - - uses: austenstone/job-summary@v2.0 + - name: Generate summary + uses: austenstone/job-summary@v2.0 id: job-summary with: create-pdf: false + comment-pr: + runs-on: ubuntu-latest + needs: test + steps: - name: Comment on PR uses: peter-evans/create-or-update-comment@v2 with: token: ${{ secrets.GITHUB_TOKEN }} repository: ${{ github.repository }} issue-number: ${{ github.event.pull_request.number }} - body: ${{ steps.job-summary.outputs.job-summary }} + body: ${{ needs.test.outputs.job-summary }} diff --git a/internal/connectors/db/yql/queries/read.go b/internal/connectors/db/yql/queries/read.go index f7460b2c..0e407fe8 100644 --- a/internal/connectors/db/yql/queries/read.go +++ b/internal/connectors/db/yql/queries/read.go @@ -22,7 +22,7 @@ var ( AllOperationFields = []string{ "id", "type", "container_id", "database", "endpoint", "backup_id", "initiated", "created_at", "completed_at", "status", "message", - "paths", "operation_id", + "paths", "operation_id", "paths_to_exclude", } )