Create entity Organization #87
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: Tests | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
code-style: | |
name: Run PHP-CS-Fixer | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up PHP | |
uses: erkenes/php-cs-fixer-action@main | |
with: | |
args: '--dry-run --diff -vvv' | |
php-unit: | |
name: Run PHPUnit | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Start the mapinha | |
run: docker compose up -d --build | |
- name: Install dependencies | |
run: docker compose exec --user root php composer install | |
- name: Create the phpunit.xml | |
run: docker compose exec --user root php cp phpunit.xml.dist phpunit.xml | |
- name: Start the PHPUnit | |
run: docker compose exec php bin/phpunit | |
cypress-run: | |
name: Run Cypress | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Start the mapinha | |
run: docker compose up -d --build | |
- name: Install application dependencies | |
run: docker compose exec --user root php composer install | |
- name: Install dependencies and run frontend tests | |
run: npm install && npx cypress run --spec "cypress/e2e/**/*.js" |