Fix Link #93
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: | |
| push: | |
| branches: [main, develop] | |
| pull_request: | |
| branches: [main, develop] | |
| jobs: | |
| e2e: | |
| name: End-to-End Tests | |
| runs-on: ubuntu-latest | |
| services: | |
| mongodb: | |
| image: mongo:8.0 | |
| ports: | |
| - 27017:27017 | |
| options: >- | |
| --health-cmd "mongosh --eval 'db.adminCommand(\"ping\")'" | |
| --health-interval 10s | |
| --health-timeout 5s | |
| --health-retries 5 | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| cache: 'npm' | |
| - name: Install dependencies | |
| run: npm ci --legacy-peer-deps | |
| - name: Build packages | |
| run: | | |
| npm run build:contracts | |
| npm run build:agent-sdk | |
| - name: Run E2E tests | |
| run: npm run test:e2e | |
| env: | |
| MONGODB_URI: mongodb://localhost:27017/wuselverse-test | |
| PLATFORM_API_KEY: platform_test_key_12345 | |
| PLATFORM_ENCRYPTION_KEY: test_encryption_key_32_chars_min | |
| PORT: 3099 | |
| - name: Upload test results | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: e2e-test-results | |
| path: | | |
| coverage/ | |
| apps/platform-api/test/*.log | |
| retention-days: 30 |