feat(ci): add E2E handshake test for API-Core integration #2
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 Handshake Test | |
| on: | |
| push: | |
| branches: [ main, dev ] | |
| paths: | |
| - 'src/server/**' | |
| - '.github/workflows/e2e-handshake.yaml' | |
| pull_request: | |
| branches: [ main, dev ] | |
| paths: | |
| - 'src/server/**' | |
| - '.github/workflows/e2e-handshake.yaml' | |
| workflow_dispatch: | |
| jobs: | |
| e2e-test: | |
| name: Run E2E Handshake | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Cache Docker layers | |
| uses: actions/cache@v4 | |
| with: | |
| path: /tmp/.buildx-cache | |
| key: ${{ runner.os }}-buildx-${{ github.sha }} | |
| restore-keys: | | |
| ${{ runner.os }}-buildx- | |
| - name: Install Docker Compose | |
| run: | | |
| sudo curl -L "https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose | |
| sudo chmod +x /usr/local/bin/docker-compose | |
| docker-compose --version | |
| - name: Build Images | |
| run: | | |
| cd src/server | |
| docker-compose -f docker-compose.test.yml build | |
| - name: Run Handshake Test | |
| run: | | |
| cd src/server | |
| docker-compose -f docker-compose.test.yml up --abort-on-container-exit --exit-code-from tests | |
| - name: Collect Container Logs | |
| if: failure() | |
| run: | | |
| cd src/server | |
| docker-compose -f docker-compose.test.yml logs |