From 2ffe1470fb7f6ff12c38c2b8d30b5170e971a9ff Mon Sep 17 00:00:00 2001 From: Tal Date: Wed, 4 Sep 2024 10:20:04 +0300 Subject: [PATCH] fix: revert github unit tests action (#1820) --- .github/workflows/test-pr.yml | 20 ++++---------------- 1 file changed, 4 insertions(+), 16 deletions(-) diff --git a/.github/workflows/test-pr.yml b/.github/workflows/test-pr.yml index cf2156466..9871a2c8a 100644 --- a/.github/workflows/test-pr.yml +++ b/.github/workflows/test-pr.yml @@ -1,7 +1,11 @@ name: Tests on: push: + paths: + - "keep/**" pull_request: + paths: + - "keep/**" workflow_dispatch: permissions: actions: write @@ -17,24 +21,8 @@ env: ELASTIC_PASSWORD: keeptests jobs: - check-before-unit-tests: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v3 - - name: Check if relevant files have changed - id: file_check - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: | - if ! git diff --name-only $BASE_SHA $HEAD_SHA | grep -q '^keep/'; then - echo "No relevant changes, cancelling job." - exit 78 - fi tests: runs-on: ubuntu-latest - needs: - - check-before-unit-tests services: mysql: image: mysql:5.7