Update test-finder.yml to use sh syntax (#4663)

This commit is contained in:
tlongwell-block 2025-09-17 13:49:18 -04:00 committed by GitHub
parent f8297354fe
commit baaebe7b6d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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