Skip to content

feat/campaign-check-errors #8

feat/campaign-check-errors

feat/campaign-check-errors #8

Workflow file for this run

name: doeit CI/CD
on:
pull_request:
branches: ["main"]
jobs:
laravel-tests:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: "8.4"
extensions: mbstring, xml, ctype, json, tokenizer, bcmath, gd, imagick
coverage: none
- name: Copy .env
run: php -r "file_exists('.env') || copy('.env.example', '.env');"
- name: Install Dependencies
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
- name: Create SQLite database file
run: touch database/database.sqlite
- name: Test Migrations
run: php artisan migrate --force
- name: Generate key
run: php artisan key:generate
- name: Directory Permissions
run: chmod -R 777 storage bootstrap/cache
- name: Run Laravel Pint for code styling
run: ./vendor/bin/pint
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "ci: apply pint style fixes"
branch: ${{ github.head_ref }}
commit_options: "--no-verify"
file_pattern: "*.php"