Skip to content

feat: MET-1673 Staking Delegation Lifecycle - Rewards Distributions C… #5092

feat: MET-1673 Staking Delegation Lifecycle - Rewards Distributions C…

feat: MET-1673 Staking Delegation Lifecycle - Rewards Distributions C… #5092

Workflow file for this run

name: Run Explorer e2e Tests
on:
push:
pull_request:
workflow_dispatch:
jobs:
test:
runs-on: self-hosted
steps:
- name: ⬇️ Checkout repository
uses: actions/checkout@v3
- name: 🦾 Create .env file
run: |
echo "PORT=3000" > .env
echo "REACT_APP_VERSION=$npm_package_version" >> .env
echo "REACT_APP_API_URL=${EXPLORER_API_MAINNET_URL}" >> .env
echo "REACT_APP_MAINNET_APP_URL=${EXPLORER_API_MAINNET_URL}" >> .env
echo 'REACT_APP_NETWORK_NAMES="{"mainnet":"Mainnet","preprod":"Preprod"}"' >> .env
- name: 🫡 Setup node
uses: actions/setup-node@v1
with:
node-version: 16
- name: 🧘‍♀️ Download dependencies
run: npm ci
- name: 🎳 Run tests
run: npm test
- name: 📹 Archive test videos
uses: actions/upload-artifact@v3
if: always()
with:
name: videos
path: ./cypress/videos
- name: 🖼️ Archive test screenshots
uses: actions/upload-artifact@v3
if: failure()
with:
name: screenshots
path: ./cypress/screenshots
env:
EXPLORER_API_MAINNET_URL: ${{ secrets.EXPLORER_API_MAINNET_URL }}