Skip to content

Commit

Permalink
feat: e2e tests on release branches (#946) (#948)
Browse files Browse the repository at this point in the history
* feat: running e2e tests on release branches

* feat: added on push condition

* feat: added on push condition

* feat: added on push condition

* feat: added on push condition

* feat: added on push condition

* feat: added on push condition
  • Loading branch information
freemanzMrojo authored Jan 16, 2025
1 parent effd7f5 commit cf1782c
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/test-e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,24 @@ jobs:
THOR_IMAGE: vechain/thor:${{ github.sha }}
name: Run Tests
steps:
# Main: https://github.com/vechain/thor-e2e-tests/tree/956b34bcf5b0b072cd7c8fd2e546a9beb66a866a
# For release branches, names in the thor and thor-e2e-tests repos should match
- name: Set e2e repo reference
id: set-ref
run: |
if [[ "${{ github.event.pull_request.base.ref }}" == release/* ]]; then
echo "ref=${{ github.event.pull_request.base.ref }}" >> "$GITHUB_OUTPUT"
elif [[ "${{ github.head_ref }}" == release/* ]]; then
echo "ref=${{ github.head_ref }}" >> "$GITHUB_OUTPUT"
else
echo "ref=956b34bcf5b0b072cd7c8fd2e546a9beb66a866a" >> "$GITHUB_OUTPUT"
fi
- name: Checkout
uses: actions/checkout@v4
with:
repository: vechain/thor-e2e-tests
# https://github.com/vechain/thor-e2e-tests/tree/956b34bcf5b0b072cd7c8fd2e546a9beb66a866a
ref: 956b34bcf5b0b072cd7c8fd2e546a9beb66a866a
ref: ${{ steps.set-ref.outputs.ref }}

- name: Download artifact
uses: actions/download-artifact@v4
Expand Down

0 comments on commit cf1782c

Please sign in to comment.