Merge branch 'runchecks' of github.com:irontec/ivoz-lib-demo into run… #23
Workflow file for this run
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: Test app console | |
on: | |
push: | |
branches: [ "runchecks" ] | |
pull_request: | |
branches: [ "runchecks" ] | |
permissions: | |
contents: read | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
services: | |
db: | |
image: mysql | |
env: | |
MYSQL_ROOT_PASSWORD: ${{env.MYSQL_ROOT_PASSWORD}} | |
MYSQL_DATABASE: ${{env.MYSQL_ROOT_PASSWORD}} | |
MYSQL_USER: ${{env.MYSQL_ROOT_PASSWORD}} | |
MYSQL_PASSWORD: ${{env.MYSQL_ROOT_PASSWORD}} | |
ports: | |
- 3306:3306 | |
steps: | |
- name: Add hosts to /etc/hosts | |
run: | | |
sudo echo "127.0.0.1 db" | sudo tee -a /etc/hosts | |
- name: Check DB connection | |
run: mysql -uroot -pchangeme -hdb -P3306 demo | |
- uses: actions/checkout@v2 | |
with: | |
ref: runchecks | |
- name: Install dependencies | |
uses: php-actions/composer@v6 | |
with: | |
working_dir: app/ | |
# Validate app console | |
- name: Validate app-console | |
run: bin/console | |
working-directory: app/ | |
# Code style | |
- name: Check code style | |
run: bin/test-codestyle | |
working-directory: app/ | |
# Generators | |
- name: Check generators | |
run: bin/test-generators | |
working-directory: app/ | |
# PHP Stan | |
- name: PHP Stan | |
run: bin/test-phpstan | |
working-directory: app/ | |
# Schema | |
- name: PHP Schema | |
run: bin/test-schema | |
working-directory: app/ | |