chore: update contract IDs in environment and summary files for testnet #257
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: E2E Tests with Allure Report | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| e2e: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| version: 9.0.0 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '22' | |
| cache: 'pnpm' | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Install Allure CLI | |
| run: pnpm add -g allure-commandline | |
| - name: Run E2E tests with Allure | |
| working-directory: tests/e2e | |
| run: pnpm --filter @iln/e2e-tests run test:e2e:allure | |
| continue-on-error: true | |
| - name: Generate Allure report | |
| working-directory: tests/e2e | |
| run: allure generate allure-results --clean -o allure-report | |
| - name: Upload Allure report as artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: allure-report | |
| path: tests/e2e/allure-report | |
| retention-days: 30 | |
| - name: Upload Allure results as artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: allure-results | |
| path: tests/e2e/allure-results | |
| retention-days: 30 | |
| - name: Add step summary | |
| if: always() | |
| working-directory: tests/e2e | |
| run: | | |
| TOTAL=$(find allure-results -name '*-result.json' | wc -l) | |
| PASSED=$(grep -l '"status":"passed"' allure-results/*-result.json 2>/dev/null | wc -l) | |
| FAILED=$(grep -l '"status":"failed"' allure-results/*-result.json 2>/dev/null | wc -l) | |
| BROKEN=$(grep -l '"status":"broken"' allure-results/*-result.json 2>/dev/null | wc -l) | |
| SKIPPED=$(grep -l '"status":"skipped"' allure-results/*-result.json 2>/dev/null | wc -l) | |
| cat >> $GITHUB_STEP_SUMMARY <<EOF | |
| ## E2E Test Results | |
| | Metric | Count | | |
| |--------|-------| | |
| | Total | $TOTAL | | |
| | Passed | $PASSED | | |
| | Failed | $FAILED | | |
| | Broken | $BROKEN | | |
| | Skipped | $SKIPPED | | |
| **Allure report** uploaded as workflow artifact. | |
| EOF | |
| - name: Fail if tests failed | |
| if: failure() | |
| run: exit 1 |