Skip to content

Create the Event

Create the Event #85

Workflow file for this run

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"