[] - Probar Pull Request Action #7
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: Pull Request Action | |
on: | |
pull_request: | |
branches: ["main"] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Install PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: '8.3' | |
- name: Copy .env | |
run: cp .env.example .env | |
- name: Composer install | |
run: composer install --no-interaction --prefer-dist | |
- name: Run PHP CodeSniffer | |
run: ./vendor/bin/grumphp run | |
run_tests: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Install PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: '8.3' | |
- name: Copy .env | |
run: cp .env.example .env | |
- name: Composer install | |
run: composer install --no-interaction --prefer-dist | |
- name: Run Tests | |
run: ./vendor/bin/phpunit laravel/Status/Tests/StatusControllerTest.php |