mirror of
https://github.com/block/goose.git
synced 2026-05-01 21:10:54 +00:00
Update test-finder.yml to use sh syntax (#4663)
This commit is contained in:
parent
f8297354fe
commit
baaebe7b6d
1 changed files with 6 additions and 6 deletions
12
.github/workflows/test-finder.yml
vendored
12
.github/workflows/test-finder.yml
vendored
|
|
@ -24,7 +24,7 @@ jobs:
|
|||
options: --user root
|
||||
env:
|
||||
GOOSE_PROVIDER: ${{ vars.GOOSE_PROVIDER || 'openai' }}
|
||||
GOOSE_MODEL: ${{ vars.GOOSE_MODEL || 'gpt-4o' }}
|
||||
GOOSE_MODEL: ${{ vars.GOOSE_MODEL || 'gpt-5' }}
|
||||
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
|
||||
HOME: /tmp/goose-home
|
||||
|
||||
|
|
@ -34,10 +34,10 @@ jobs:
|
|||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Install analysis tools
|
||||
- name: Install build and analysis tools
|
||||
run: |
|
||||
apt-get update
|
||||
apt-get install -y jq ripgrep
|
||||
apt-get install -y jq ripgrep build-essential
|
||||
|
||||
- name: Find untested code and create working test
|
||||
id: find_untested
|
||||
|
|
@ -58,7 +58,7 @@ jobs:
|
|||
5. Focus on the goose crate first, then goose-cli, then others
|
||||
|
||||
Process:
|
||||
1. Find a suitable untested function
|
||||
1. Find a suitable untested function (use your `analyze` tool and ripgrep)
|
||||
2. Write a comprehensive unit test for it
|
||||
3. Apply your changes to the codebase
|
||||
4. Run the test with: cargo test --test <test_name>
|
||||
|
|
@ -178,9 +178,9 @@ jobs:
|
|||
PATCH_CREATED: ${{ steps.find_untested.outputs.patch_created }}
|
||||
FUNCTION_NAME: ${{ steps.find_untested.outputs.function_name }}
|
||||
run: |
|
||||
if [ "$PATCH_CREATED" == "true" ]; then
|
||||
if [ "$PATCH_CREATED" = "true" ]; then
|
||||
echo "✅ Successfully found untested code and created a test"
|
||||
echo "📝 Function tested: $FUNCTION_NAME"
|
||||
else
|
||||
echo "ℹ️ No suitable untested code found today"
|
||||
fi
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue