Feature: Barcode scanner in beta mode #613
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: | |
pull_request: | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
env: | |
DATABASE_URL: postgresql://postgres:postgres@127.0.0.1:5432/postgres?serverVersion=16&charset=utf8 | |
services: | |
db: | |
image: postgres:16 | |
env: | |
POSTGRES_USER: postgres | |
POSTGRES_PASSWORD: postgres | |
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5 | |
ports: | |
- 5432:5432 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: shivammathur/setup-php@v2 | |
with: | |
php-version: 8.3 | |
coverage: none # default is xdebug | |
extensions: mbstring, uuid # needed by phpunit | |
- run: composer install --dev --no-progress | |
- run: npm install | |
- run: npm run dev | |
- run: vendor/bin/phpunit | |
phpstan: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: shivammathur/setup-php@v2 | |
with: | |
php-version: 8.3 | |
coverage: none # default is xdebug | |
extensions: mbstring, uuid # needed by phpunit | |
- run: composer install --dev --no-progress | |
- run: bin/console cache:warmup --env=dev | |
- run: composer run-script phpstan |