Improved devcontainer setup with e2e test mini infra #1
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: E2E Tests | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| concurrency: | |
| group: e2e-tests-${{ github.head_ref || github.run_id }} | |
| cancel-in-progress: true | |
| jobs: | |
| e2e-tests: | |
| name: E2E Tests | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| ruby_version: ["3.4.5"] | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Start E2E services | |
| run: | | |
| cd .devcontainer | |
| docker compose --profile e2e up -d sentry-rails-mini sentry-svelte-mini | |
| # Wait for services to be ready | |
| echo "Waiting for services to be ready..." | |
| timeout 60 bash -c 'until curl -s http://localhost:5000/trace_headers >/dev/null && \ | |
| curl -s http://localhost:5001 >/dev/null; do sleep 2; done' | |
| - name: Run E2E tests | |
| run: | | |
| cd .devcontainer | |
| docker compose --profile e2e run --rm sentry-test bundle exec rake | |
| env: | |
| SENTRY_E2E_RAILS_APP_URL: http://rails-mini:5000 | |
| SENTRY_E2E_SVELTE_APP_URL: http://svelte-mini:5001 | |
| - name: Stop E2E services | |
| if: always() | |
| run: | | |
| cd .devcontainer | |
| docker compose --profile e2e down | |
| - name: Upload test artifacts | |
| if: failure() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: e2e-test-logs-ruby-${{ matrix.ruby_version }} | |
| path: | | |
| spec/apps/rails-mini/log/sentry_debug_events.log | |
| retention-days: 7 |