chore: remove framework dependency and use utopia-php/servers #1
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" | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| on: | |
| pull_request: | |
| push: | |
| branches: [main] | |
| jobs: | |
| lint: | |
| name: Lint | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Run Linter | |
| run: | | |
| docker run --rm -v $PWD:/app composer sh -c \ | |
| "composer install --profile --ignore-platform-reqs && composer lint" | |
| analyze: | |
| name: Analyze | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Run CodeQL | |
| run: | | |
| docker run --rm -v $PWD:/app composer sh -c \ | |
| "composer install --profile --ignore-platform-reqs && composer check" | |
| tests: | |
| name: Tests (${{ matrix.adapter }}) | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| adapter: | |
| - AMQP | |
| - Pool | |
| - SwooleRedisCluster | |
| - Swoole | |
| - Workerman | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Load and Start Services | |
| run: | | |
| docker compose build | |
| docker compose up -d | |
| sleep 10 | |
| - name: Run Tests | |
| run: docker compose exec -T tests vendor/bin/phpunit /usr/local/src/tests/Queue/E2E/Adapter/${{ matrix.adapter }}Test.php --debug |