Skip to content

Commit

Permalink
chore(ci): Set the Preview endpoint when available in the CI settings.
Browse files Browse the repository at this point in the history
  • Loading branch information
brunomenezes committed Nov 27, 2024
1 parent 2f24b61 commit 309459a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ concurrency:
cancel-in-progress: true
env:
NEXT_PUBLIC_EXPLORER_API_URL: http://localhost:4350/graphql
NEXT_PUBLIC_PREVIEW_EXPLORER_API_URL: ${{ vars.NEXT_PUBLIC_PREVIEW_EXPLORER_API_URL }}
jobs:
ci:
runs-on: ubuntu-latest
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: End-to-end testing
on:
deployment_status:
env:
NEXT_PUBLIC_PREVIEW_EXPLORER_API_URL: ${{vars.NEXT_PUBLIC_PREVIEW_EXPLORER_API_URL}}
jobs:
e2e:
if: github.event_name == 'deployment_status' && github.event.deployment_status.state == 'success' && contains(github.event.deployment_status.environment_url, 'rollups-explorer-sepolia')
Expand Down

0 comments on commit 309459a

Please sign in to comment.