Skip to content

Commit

Permalink
readOperations fix & action improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
qrort committed Aug 22, 2024
1 parent 33de8d0 commit 4e1f81e
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
17 changes: 16 additions & 1 deletion .github/workflows/go-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,22 @@ on:
jobs:
test:
runs-on: ubuntu-latest
outputs:
job-summary: ${{ steps.job-summary.outputs.job-summary }}
steps:
- name: Checkout
- uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v5
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

Expand All @@ -34,16 +42,23 @@ jobs:
- name: Test
uses: robherley/[email protected]
with:
testArguments: './... -race --timeout=10s'

- name: Generate summary
- uses: austenstone/[email protected]
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 }}
2 changes: 1 addition & 1 deletion internal/connectors/db/yql/queries/read.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
}
)

Expand Down

0 comments on commit 4e1f81e

Please sign in to comment.