Skip to content

Commit

Permalink
Update e2e_test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mrhardikjoshi committed Sep 25, 2024
1 parent 9c73717 commit 2e89221
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions .github/workflows/e2e_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,7 @@ jobs:
run: while [ $((curl localhost:7474/ > /dev/null 2>&1); echo $?) -ne 0 ]; do sleep 1; done

- name: Setup test rails app
run: |
if [ "${{ github.event_name }}" == "pull_request" ]; then
# For pull requests, get the SHA of the last commit in the PR
COMMIT_SHA=$(jq -r '.pull_request.head.sha' < "${{ github.event_path }}")
else
# For push events (like master branch), use the commit SHA
COMMIT_SHA="${{ github.sha }}"
fi
./e2e_tests/setup.sh $COMMIT_SHA
run: e2e_tests/setup.sh

- name: Install dependencies
run: bundle update
Expand Down

0 comments on commit 2e89221

Please sign in to comment.