Improve gotestsum output for assertion failures #245
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Copyright 2026-Present Couchbase, Inc. | |
| # | |
| # Use of this software is governed by the Business Source License included | |
| # in the file licenses/BSL-Couchbase.txt. As of the Change Date specified | |
| # in that file, in accordance with the Business Source License, use of this | |
| # software will be governed by the Apache License, Version 2.0, included in | |
| # the file licenses/APL2.txt. | |
| name: Droid Review | |
| on: | |
| issue_comment: | |
| types: [created] | |
| pull_request: | |
| types: [opened, ready_for_review, reopened] | |
| concurrency: | |
| # factory-droid[bot] dispatches get a unique per-run suffix so the bot's own status comments cannot cancel an in-flight @droid run. | |
| group: >- | |
| ${{ github.workflow }}-${{ | |
| github.event.pull_request.number || | |
| github.event.issue.number || | |
| github.ref | |
| }}${{ | |
| github.actor == 'factory-droid[bot]' && | |
| format('-bot-{0}', github.run_id) || '' | |
| }} | |
| cancel-in-progress: true | |
| env: | |
| # Pinned action versions, referenced by the steps below through their YAML anchors. | |
| ACTIONS_CHECKOUT_VERSION: &actions_checkout_version actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| ACTIONS_DROID_VERSION: &actions_droid_version Factory-AI/droid-action@e5ae50268211d2e9ac85edb57c28bf253b6627f7 # v6 | |
| jobs: | |
| droid: | |
| if: | | |
| ( | |
| github.event_name == 'issue_comment' && | |
| github.event.issue.pull_request && | |
| contains(fromJSON('["OWNER", "MEMBER", "COLLABORATOR"]'), github.event.comment.author_association) && | |
| contains(github.event.comment.body, '@droid') | |
| ) || ( | |
| github.event_name == 'pull_request' && | |
| github.event.pull_request.draft == false && | |
| github.event.pull_request.head.repo.full_name == github.repository && | |
| github.event.pull_request.user.type != 'Bot' | |
| ) | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| issues: write | |
| id-token: write | |
| actions: read | |
| steps: | |
| - name: Checkout repository | |
| uses: *actions_checkout_version | |
| with: | |
| fetch-depth: 1 | |
| - name: Run Droid Review | |
| uses: *actions_droid_version | |
| with: | |
| factory_api_key: ${{ secrets.FACTORY_API_KEY }} | |
| review_model: gpt-5.2 | |
| automatic_review: ${{ github.event_name == 'pull_request' }} |