Skip to content

Commit

Permalink
fix env vars, add readme
Browse files Browse the repository at this point in the history
  • Loading branch information
0xtzData committed Aug 25, 2024
1 parent bbff2fb commit 7370b90
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 30 deletions.
58 changes: 29 additions & 29 deletions .github/workflows/e2e_matrix.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,46 +3,46 @@ on:
push:
schedule:
- cron: '0 */3 * * *'
env:
ENV: prod
jobs:
on_demand_matrix:
permissions:
id-token: write
contents: read
name: E2E Matrix
name: ${{ matrix.url }}
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
url: [
"https://eth.blockscout.com",
# "http://gnosis.blockscout.com",
# "https://gnosis-chiado.blockscout.com",
# "https://blockscout.com/astar",
# "https://blockscout.com/shiden",
# "https://blockscout.com/shibuya",
# "https://neon.blockscout.com",
# "https://neon-devnet.blockscout.com",
# "https://zetachain-athens-3.blockscout.com",
# "https://pegasus.lightlink.io",
# "https://phoenix.lightlink.io",
# "https://explorer.testnet.immutable.com",
# "https://www.shibariumscan.io",
# "https://explorer.fuse.io",
# "https://explorer.fusespark.io",
# "https://puppyscan.shib.io",
# "https://optimism-sepolia.blockscout.com",
# "https://rootstock.blockscout.com",
# "https://base.blockscout.com",
# "https://base-sepolia.blockscout.com",
# "https://etc-mordor.blockscout.com",
# "https://etc.blockscout.com",
# "https://explorer.evm.shimmer.network",
# "https://explorer.evm.testnet.shimmer.network",
# "https://zksync.blockscout.com",
# "https://stability-betanet.blockscout.com",
# "https://optimism.blockscout.com"
"https://eth-sepolia.blockscout.com",
"https://eth-sepolia.k8s-dev.blockscout.com",
"http://gnosis.blockscout.com",
"https://gnosis-chiado.blockscout.com",
"https://blockscout.com/astar",
"https://blockscout.com/shiden",
"https://blockscout.com/shibuya",
"https://neon.blockscout.com",
"https://neon-devnet.blockscout.com",
"https://zetachain-athens-3.blockscout.com",
"https://pegasus.lightlink.io",
"https://phoenix.lightlink.io",
"https://explorer.testnet.immutable.com",
"https://www.shibariumscan.io",
"https://explorer.fuse.io",
"https://explorer.fusespark.io",
"https://puppyscan.shib.io",
"https://optimism-sepolia.blockscout.com",
"https://rootstock.blockscout.com",
"https://base.blockscout.com",
"https://base-sepolia.blockscout.com",
"https://etc-mordor.blockscout.com",
"https://etc.blockscout.com",
"https://explorer.evm.shimmer.network",
"https://explorer.evm.testnet.shimmer.network",
"https://zksync.blockscout.com",
"https://stability-betanet.blockscout.com",
"https://optimism.blockscout.com"
]
steps:
- uses: actions/checkout@v3
Expand Down
15 changes: 14 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,17 @@
[![Admin console tests](https://github.com/blockscout/blockscout-ci-cd/actions/workflows/e2e_admin.yaml/badge.svg)](https://github.com/blockscout/blockscout-ci-cd/actions/workflows/e2e_admin.yaml)
[![ScoutCloud](https://github.com/blockscout/blockscout-ci-cd/actions/workflows/e2e_scoutcloud.yaml/badge.svg)](https://github.com/blockscout/blockscout-ci-cd/actions/workflows/e2e_scoutcloud.yaml)

This repo contains E2E and stress/load tests for Blockscout APIs
This repo contains E2E and stress/load tests for Blockscout APIs

## Production tests
To add your environment to the E2E tests suite you need to:
1. Create a new JSON file for static data under `tests/e2e/data/static`
2. Fill different entities data (tokens/blobs/etc), [eth-sepolia.json](tests/e2e/static/eth-sepolia.json)
3. Add your environment URL to [e2e_matrix](.github/workflows/e2e_matrix.yaml)

## Production tests debug
```
export BLOCKSCOUT_URL=...
export PWDEBUG=0 # 1 - debug, 0 - no debug
source .envrc && npm run test:ondemand
```

0 comments on commit 7370b90

Please sign in to comment.