feat: Add E2E tests #16
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 | |
| on: | |
| pull_request: | |
| branches: [ main ] | |
| defaults: | |
| run: | |
| shell: 'bash' | |
| jobs: | |
| test: | |
| timeout-minutes: 60 | |
| runs-on: macos-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| cache: 'npm' | |
| - name: install | |
| run: make install | |
| - name: protoc | |
| run: make protoc | |
| - name: build | |
| run: make build | |
| env: | |
| NODE_OPTIONS: "--max-old-space-size=8192" | |
| MODE: production | |
| E2E: true | |
| E2E_WALLET: ${{ secrets.E2E_WALLET }} | |
| - name: e2e | |
| run: make test-creator-hub-e2e | |
| env: | |
| NODE_OPTIONS: "--max-old-space-size=8192" | |
| E2E_NAME: ${{ secrets.E2E_NAME }} | |
| E2E_PRIVATE_KEY: ${{ secrets.E2E_PRIVATE_KEY }} | |
| E2E_EXPIRATION_MINUTES: 10 | |
| - name: Upload failure artifacts | |
| if: ${{ failure() }} | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: e2e-failures | |
| path: | | |
| test-results/**/*.png | |
| test-results/**/*.webm | |
| test-results/**/*.zip |