Skip to content

Commit

Permalink
fix: revert github unit tests action (#1820)
Browse files Browse the repository at this point in the history
  • Loading branch information
talboren authored Sep 4, 2024
1 parent c7a8ca0 commit 2ffe147
Showing 1 changed file with 4 additions and 16 deletions.
20 changes: 4 additions & 16 deletions .github/workflows/test-pr.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
name: Tests
on:
push:
paths:
- "keep/**"
pull_request:
paths:
- "keep/**"
workflow_dispatch:
permissions:
actions: write
Expand All @@ -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
Expand Down

0 comments on commit 2ffe147

Please sign in to comment.