Skip to content

Commit

Permalink
run all on non-PR
Browse files Browse the repository at this point in the history
  • Loading branch information
nbsp committed Dec 15, 2024
1 parent 35f0efb commit 05d3363
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,12 @@ jobs:
ELEVEN_API_KEY: ${{ secrets.ELEVEN_API_KEY }}
DEEPGRAM_API_KEY: ${{ secrets.DEEPGRAM_API_KEY }}
run: |
pr=${{ github.event_name == 'pull_request' }}
agents=$(git diff --name-only ${{ github.event.before }} ${{ github.sha }} | grep -q '^agents.*\.ts$' && echo 1 || echo 0)
tests=$(git diff --name-only ${{ github.event.before }} ${{ github.sha }} | grep -q '^plugins/test.*\.ts$' && echo 1 || echo 0)
plugins=$(git diff --name-only ${{ github.event.before }} ${{ github.sha }} | grep '^plugins.*\.ts$' | cut -d/ -f2 | sort -u | tr '\n' ' ')
if [[ "$agents" -eq 1 || "$tests" -eq 1 ]]; then
if [[ "$agents" -eq 1 || "$tests" -eq 1 || "$pr" = "false" ]]; then
pnpm test
elif [[ -n "$plugins" ]]; then
read -ra plugins <<< "$plugins"
Expand Down

0 comments on commit 05d3363

Please sign in to comment.