Merge pull request #1108 from nguyenthanhan/fix/crawlers-energy-displ… #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: Docker Compose Unit Tests | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| paths-ignore: | |
| - 'resources/css/**' | |
| - 'resources/js/**' | |
| - 'public/css/**' | |
| - 'public/js/**' | |
| - 'public/mix-manifest.json' | |
| - 'package.json' | |
| - 'package-lock.json' | |
| - 'yarn.lock' | |
| - 'webpack.mix.js' | |
| pull_request: | |
| branches: [ "main" ] | |
| paths-ignore: | |
| - 'resources/css/**' | |
| - 'resources/js/**' | |
| - 'public/css/**' | |
| - 'public/js/**' | |
| - 'public/mix-manifest.json' | |
| - 'package.json' | |
| - 'package-lock.json' | |
| - 'yarn.lock' | |
| - 'webpack.mix.js' | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| test-docker: | |
| runs-on: ubuntu-latest | |
| services: | |
| docker: | |
| image: docker:26.0.0 | |
| options: --privileged | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Check for no external remote sources | |
| uses: ./.github/actions/check-remote-sources | |
| - name: Setup Docker Compose | |
| uses: ./.github/actions/docker-compose-setup | |
| - name: Run Tests | |
| uses: nick-fields/retry@v3 | |
| with: | |
| timeout_minutes: 10 | |
| max_attempts: 3 | |
| command: docker compose exec -T ogamex-app php artisan test | |
| - name: Run custom Race Condition Tests | |
| uses: nick-fields/retry@v3 | |
| with: | |
| timeout_minutes: 10 | |
| max_attempts: 3 | |
| command: | | |
| docker compose exec -T ogamex-app php artisan ogamex:test:race-condition-unitqueue | |
| docker compose exec -T ogamex-app php artisan ogamex:test:race-condition-game-mission | |
| docker compose exec -T ogamex-app php artisan ogamex:test:race-condition-fleet-dispatch | |
| docker compose exec -T ogamex-app php artisan ogamex:test:race-condition-unitqueue-creation |