Continue migrating base cards #219
This file contains 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: Run integration tests (random games) | |
on: | |
push: | |
branches: | |
- 'main-4' | |
jobs: | |
build-test: | |
runs-on: ubuntu-latest | |
services: | |
mysql: | |
image: mysql:latest | |
env: | |
MYSQL_ALLOW_EMPTY_PASSWORD: true | |
MYSQL_DATABASE: innovation_test | |
ports: | |
- 3306 | |
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3 | |
steps: | |
- name: Checkout codebase | |
uses: actions/checkout@v2 | |
- name: Setup PHP 8.2 | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: '8.2' | |
- name: Install dependencies | |
run: composer install -n --prefer-dist | |
- name: Run random games | |
run: env CI=1 ./vendor/bin/phpunit tests/Integration/RandomGameTest.php | |
env: | |
DB_PORT: ${{ job.services.mysql.ports[3306] }} |