build(deps-dev): Bump laravel/pint from 1.17.3 to 1.18.1 #50
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: | |
pull_request: | |
branches: | |
- main | |
- develop | |
env: | |
DB_CONNECTION: mysql | |
DB_HOST: 127.0.0.1 | |
# See https://github.com/cc-fiae-2024/cc-fiae-2024/settings/secrets/actions | |
DB_USER: ${{ secrets.DB_USER }} | |
DB_PASSWORD: ${{ secrets.DB_PASSWORD }} | |
DB_DATABASE: testing | |
jobs: | |
build: | |
uses: './.github/workflows/build.yaml' | |
php-tests: | |
needs: [ build ] | |
# See https://docs.github.com/en/actions/writing-workflows/choosing-where-your-workflow-runs/choosing-the-runner-for-a-job#standard-github-hosted-runners-for-public-repositories | |
runs-on: ubuntu-24.04 | |
environment: testing | |
strategy: | |
matrix: | |
operating-system: [ ubuntu-24.04 ] | |
# Limited by https://github.com/shivammathur/setup-php#github-hosted-runners | |
php-version: [ '8.3' ] | |
dependency-stability: [ prefer-stable ] | |
name: php-tests - PHP ${{ matrix.php-version }} (${{ matrix.operating-system }}) | |
steps: | |
- uses: actions/checkout@v4.1.7 | |
- name: Start MySQL service & create testing database | |
run: | | |
sudo systemctl start mysql.service | |
mysql -e "CREATE DATABASE IF NOT EXISTS $DB_DATABASE;" -u"$DB_USER" -p"$DB_PASSWORD" | |
- name: Install PHP | |
uses: shivammathur/setup-php@2.31.1 | |
with: | |
php-version: ${{ matrix.php-version }} | |
- name: Download build artifact | |
id: download-build-artifact | |
uses: actions/download-artifact@v4.1.8 | |
with: | |
# Pick up the folder from build.yaml Upload (name must match) | |
name: eventguru-build-${{ github.run_id }} | |
path: public/build | |
- name: Restore vendor from Cache | |
uses: actions/cache@v4.0.2 | |
id: vendor-cache | |
with: | |
path: vendor | |
key: ${{ runner.OS }}-build-${{ hashFiles('**/composer.lock') }} | |
- name: Prepare Laravel Application | |
run: | | |
php -r "file_exists('.env') || copy('.env.example', '.env');" | |
php artisan key:generate | |
- name: Prepare Laravel Application | |
run: | | |
php -r "file_exists('.env') || copy('.env.example', '.env');" | |
php artisan key:generate | |
- name: Run Migrations | |
run: php artisan migrate | |
- name: Execute tests (Unit and Feature tests) via PestPHP | |
run: php artisan test |