Skip to content

Fix updated timestamp not being updated (#37) #69

Fix updated timestamp not being updated (#37)

Fix updated timestamp not being updated (#37) #69

Workflow file for this run

name: PHPUnit & PHPStan
on: [push]
permissions:
contents: read
jobs:
phpunit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Copy .env
run: php -r "file_exists('.env') || copy('.env.example', '.env');"
- name: Load .env file
uses: xom9ikk/dotenv@v2
- uses: isbang/compose-action@v1.4.1
with:
compose-file: "./docker-compose.yml"
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.0
- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v3
with:
path: vendor
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php-
- name: Install dependencies
run: composer install --prefer-dist --no-progress
- name: Waiting for MySQL
run: |
while ! mysqladmin ping --host=${{ env.MYSQL_HOST }} --port=${{ env.MYSQL_PORT }} --password=${{ env.MYSQL_PASSWORD }} --silent; do
sleep 1
done
- name: PHPUnit
run: ./vendor/bin/phpunit
phpstan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.0
- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v3
with:
path: vendor
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php-
- name: Install dependencies
run: composer install --prefer-dist --no-progress
- name: PHPStan
run: ./vendor/bin/phpstan analyze --xdebug --memory-limit 512M