From 72655f326690b7b5af1980af4f620cff6b7d6438 Mon Sep 17 00:00:00 2001 From: aoife cassidy Date: Sun, 15 Dec 2024 12:57:43 +0200 Subject: [PATCH] run all on non-PR --- .github/workflows/test.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 677d2d8d..046d4e7a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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"