Merge pull request #13 from ormelflores/develop #10
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: Build | |
on: | |
push: | |
branches: | |
- master | |
- develop | |
pull_request: | |
branches: | |
- master | |
- develop | |
jobs: | |
build: | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v2 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: "8.2" | |
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick | |
coverage: none | |
- name: Copy Environment | |
run: cp .env.example .env | |
- name: Install Dependencies | |
run: | | |
composer install -n --prefer-dist | |
composer update | |
- name: Clear Config & Cache | |
run: | | |
php artisan config:clear | |
php artisan cache:clear | |
- name: Compile Front-End | |
run: | | |
npm install | |
npm run build | |
- name: Regenerate Key | |
run: php artisan key:generate | |
- name: Run Tests | |
run: ./vendor/bin/pest --parallel | |
- name: Run Pint | |
run: ./vendor/bin/pint --test |