Updated github actions #13
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: tests | ||
on: | ||
push: | ||
branches: | ||
- main | ||
- dev | ||
pull_request: | ||
branches: | ||
-main | ||
-dev | ||
jobs: | ||
tests: | ||
name: Tests with php8.3 | ||
runs-on: ubuntu-latest | ||
continue-on-error: false | ||
services: | ||
redis: | ||
image: redis:latest | ||
ports: | ||
- "6379:6379" | ||
environment: | ||
- REDIS_PASSWORD=password | ||
- REDIS_PORT=6379 | ||
- REDIS_DATABASES=16 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Set up php8.3 | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: 8.3 | ||
coverage: xdebug | ||
- name: Copy .env | ||
run: php -r "file_exists('.env') || copy('.env.example', '.env');" | ||
- name: Install dependencies with Composer | ||
uses: ramsey/composer-install@v2 | ||
- name: Run tests with coverage results | ||
run: vendor/bin/phpunit --coverage-clover ./tests/_output/clover.xml |