π release: server@0.2.115 #13872
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: test | |
| on: | |
| push: { branches-ignore: [changesets-ghcommit-temp/**] } # cspell:ignore ghcommit | |
| jobs: | |
| test: | |
| environment: test | |
| runs-on: ubuntu-latest | |
| env: | |
| NX_DAEMON: false | |
| REDISMS_SYSTEM_BINARY: /usr/bin/redis-server | |
| BASE_RPC_URL: ${{ secrets.BASE_RPC_URL }} | |
| ETHEREUM_RPC_URL: ${{ secrets.ETHEREUM_RPC_URL }} | |
| OPTIMISM_RPC_URL: ${{ secrets.OPTIMISM_RPC_URL }} | |
| OPTIMISM_SEPOLIA_RPC_URL: ${{ secrets.OPTIMISM_SEPOLIA_RPC_URL }} | |
| POLYGON_RPC_URL: ${{ secrets.POLYGON_RPC_URL }} | |
| steps: | |
| - uses: actions/checkout@v7 | |
| with: { fetch-depth: 0, fetch-tags: true } | |
| - uses: actions/setup-node@v7 | |
| with: { node-version: "^24.14.1" } | |
| - uses: foundry-rs/foundry-toolchain@v1 | |
| with: { version: v1.7.1 } | |
| - uses: actions/setup-python@v7 | |
| with: | |
| python-version: "3.12" | |
| cache: pip | |
| cache-dependency-path: contracts/requirements.txt | |
| - uses: actions/cache@v6 | |
| with: | |
| path: .nx/cache | |
| key: nx-${{ runner.os }}-${{ github.sha }} | |
| restore-keys: nx-${{ runner.os }}- | |
| - run: pip install -r contracts/requirements.txt | |
| - run: | | |
| mkdir -p $HOME/.local/bin && cd $HOME/.local/bin | |
| streamingfast="" | |
| arch=$(uname -m | sed "s/aarch64/arm64/") | |
| for repo in firehose-ethereum substreams; do | |
| curl -fsSL --retry 5 --retry-all-errors --retry-delay 2 "https://github.com/streamingfast/$repo/releases/latest/download/${repo}_linux_$arch.tar.gz" | tar zxf - & | |
| streamingfast="$streamingfast $!" | |
| done | |
| for pid in $streamingfast; do wait "$pid" || exit 1; done | |
| - run: echo ::add-matcher::.github/matcher.json | |
| - run: sudo apt-get update && sudo apt-get install --no-install-recommends --yes redis-server | |
| - run: corepack enable | |
| - run: pnpm install --frozen-lockfile | |
| - run: pnpm nx run-many -t test | |
| - uses: codecov/codecov-action@v7 | |
| if: ${{ !cancelled() }} | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| name: test | |
| - uses: codecov/codecov-action@v7 | |
| if: ${{ !cancelled() }} | |
| with: | |
| report_type: test_results | |
| files: server/coverage/junit.xml | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| name: test | |
| - uses: actions/upload-artifact@v7 | |
| if: ${{ !cancelled() }} | |
| with: | |
| name: server-artifacts | |
| path: server/node_modules/@exactly/.* | |
| include-hidden-files: true | |
| e2e: | |
| environment: test | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 30 | |
| env: | |
| NX_DAEMON: false | |
| REDISMS_SYSTEM_BINARY: /usr/bin/redis-server | |
| CHAIN_ID: "31337" | |
| EXPO_PUBLIC_E2E_MNEMONIC: ${{ secrets.EXPO_PUBLIC_E2E_MNEMONIC }} | |
| steps: | |
| - uses: actions/checkout@v7 | |
| with: { fetch-depth: 0, fetch-tags: true } | |
| - uses: actions/setup-node@v7 | |
| with: { node-version: "^24.14.1" } | |
| - uses: foundry-rs/foundry-toolchain@v1 | |
| with: { version: v1.7.1 } | |
| - uses: actions/cache@v6 | |
| with: | |
| path: .nx/cache | |
| key: nx-${{ runner.os }}-${{ github.sha }} | |
| restore-keys: nx-${{ runner.os }}- | |
| - uses: actions/setup-java@v5 | |
| with: { distribution: zulu, java-version: "17" } | |
| - run: | | |
| set -o pipefail | |
| mkdir -p $HOME/.local/bin && cd $HOME/.local/bin | |
| streamingfast="" | |
| arch=$(uname -m | sed "s/aarch64/arm64/") | |
| for repo in firehose-ethereum substreams; do | |
| curl -fsSL --retry 5 --retry-all-errors --retry-delay 2 "https://github.com/streamingfast/$repo/releases/latest/download/${repo}_linux_$arch.tar.gz" | tar zxf - & | |
| streamingfast="$streamingfast $!" | |
| done | |
| for pid in $streamingfast; do wait "$pid" || exit 1; done | |
| for attempt in {1..5}; do | |
| curl -fsSL "https://get.maestro.mobile.dev" | bash || true | |
| [ -x $HOME/.maestro/bin/maestro ] && $HOME/.maestro/bin/maestro --version && echo $HOME/.maestro/bin >> "$GITHUB_PATH" && break | |
| [ "$attempt" -eq 5 ] && echo "maestro install failed after 5 attempts" && exit 1 | |
| rm -rf $HOME/.maestro $HOME/.maestro.tmp | |
| sleep 2 | |
| done | |
| - run: echo ::add-matcher::.github/matcher.json | |
| - run: sudo apt-get update && sudo apt-get install --no-install-recommends --yes redis-server | |
| - run: corepack enable | |
| - run: pnpm install --frozen-lockfile | |
| - run: | | |
| GITHUB_STEP_SUMMARY= pnpm nx run-many -t build -p mobile e2e | |
| GITHUB_STEP_SUMMARY= pnpm nx generate:app server | |
| pnpm nx e2e server > server.log 2>&1 & | |
| pnpm dlx serve server/app -l 8081 -snL & | |
| for i in {1..420}; do | |
| curl -f http://localhost:3000/api/auth/authentication > /dev/null 2>&1 && break | |
| [ $i -eq 420 ] && cat server.log && exit 1 | |
| sleep 1 | |
| done | |
| CHROME_LOG_FILE=$PWD/chrome.log xvfb-run maestro test .maestro/flows/web.yaml --format junit --output .maestro/junit.xml | |
| env: { APP_DOMAIN: localhost, EXPO_PUBLIC_ENV: e2e } | |
| - if: always() | |
| run: | | |
| curl -X POST http://localhost:3000/e2e/shutdown || true | |
| for i in {1..60}; do [ -f server/coverage/lcov.info ] && break; sleep 1; done | |
| - uses: codecov/codecov-action@v7 | |
| if: ${{ !cancelled() }} | |
| with: | |
| files: server/coverage/lcov.info,server/coverage/app.json | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| flags: e2e | |
| name: web | |
| - uses: codecov/codecov-action@v7 | |
| if: ${{ !cancelled() }} | |
| with: | |
| report_type: test_results | |
| files: .maestro/junit.xml | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| flags: e2e | |
| name: web | |
| - uses: actions/upload-artifact@v7 | |
| if: ${{ !cancelled() }} | |
| with: | |
| name: e2e-artifacts | |
| path: | | |
| chrome.log | |
| server.log | |
| server/coverage | |
| server/node_modules/@exactly/.* | |
| ~/.maestro/tests | |
| .maestro/screenshots | |
| include-hidden-files: true |