Add TCP support to DNS server and client #10
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: CI | |
| on: [pull_request] | |
| jobs: | |
| format: | |
| name: Format | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Run format check | |
| run: | | |
| docker run --rm -v $PWD:/app composer:2.7 sh -c \ | |
| "composer install --profile --ignore-platform-reqs && composer format:check" | |
| analyze: | |
| name: Analyze | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Run static analysis | |
| run: | | |
| docker run --rm -v $PWD:/app composer:2.7 sh -c \ | |
| "composer install --profile --ignore-platform-reqs && composer analyze" | |
| unit-tests: | |
| name: Unit Tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: Run unit tests | |
| run: | | |
| docker run --rm -v $PWD:/app composer:2.7 sh -c \ | |
| "composer install --profile --ignore-platform-reqs && composer test -- --testsuite unit" | |
| e2e-tests: | |
| name: E2E Tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Build image | |
| uses: docker/build-push-action@v6 | |
| with: | |
| context: . | |
| push: false | |
| tags: dns-dev | |
| load: true | |
| cache-from: type=gha | |
| cache-to: type=gha,mode=max | |
| - name: Start DNS Server | |
| run: | | |
| docker compose up -d | |
| sleep 10 | |
| - name: Run E2E tests | |
| run: docker compose exec -T dns-server vendor/bin/phpunit --configuration phpunit.xml --testsuite e2e |