chore: bump git-proxy to v2.0.0-rc.6 #1596
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 | |
| permissions: | |
| contents: read | |
| issues: write | |
| pull-requests: write | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| workflow_dispatch: | |
| jobs: | |
| e2e: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| suite: [vitest, cypress] | |
| env: | |
| BUILDX_CACHE_SCOPE: ${{ matrix.suite }}-build | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@d91f340399fb2345e3e45f5461e116862b08261d | |
| with: | |
| install: true | |
| - name: Expose GitHub Runtime for Docker Cache | |
| uses: crazy-max/ghaction-github-runtime@3cb05d89e1f492524af3d41a1c98c83bc3025124 # v3 | |
| - name: Set up Docker Compose | |
| uses: docker/setup-compose-action@e29e0ecd235838be5f2e823f8f512a72dc55f662 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6 | |
| with: | |
| node-version: '24' | |
| cache: 'npm' | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Configure Git for CI | |
| run: | | |
| git config --global user.name "CI Runner" | |
| git config --global user.email "ci@example.com" | |
| git config --global init.defaultBranch main | |
| - name: Build and start services with Docker Compose | |
| run: docker compose -f docker-compose.yml -f docker-compose.ci.yml up -d --build --wait | |
| - name: Debug service state | |
| if: failure() | |
| run: | | |
| docker compose ps | |
| docker compose logs | |
| - name: Run vitest E2E tests | |
| if: matrix.suite == 'vitest' | |
| run: npm run test:e2e | |
| - name: Run Cypress E2E tests | |
| if: matrix.suite == 'cypress' | |
| run: npm run cypress:run:docker | |
| timeout-minutes: 10 | |
| env: | |
| CYPRESS_BASE_URL: http://localhost:8081 | |
| CYPRESS_API_BASE_URL: http://localhost:8081 | |
| CYPRESS_GIT_PROXY_URL: http://localhost:8000 | |
| CYPRESS_GIT_SERVER_TARGET: git-server:8443 | |
| - name: Dump git-proxy logs on failure | |
| if: failure() | |
| run: docker compose logs git-proxy --tail=100 | |
| - name: Upload Cypress screenshots on failure | |
| uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7 | |
| if: failure() && matrix.suite == 'cypress' | |
| with: | |
| name: cypress-screenshots | |
| path: cypress/screenshots | |
| retention-days: 7 | |
| - name: Stop services | |
| if: always() | |
| run: docker compose down -v | |
| results: | |
| if: ${{ always() }} | |
| runs-on: ubuntu-latest | |
| name: e2e | |
| needs: [e2e] | |
| steps: | |
| - name: Check e2e results | |
| run: | | |
| result="${{ needs.e2e.result }}" | |
| if [[ "$result" == "success" || "$result" == "skipped" ]]; then | |
| exit 0 | |
| else | |
| exit 1 | |
| fi |