Skip to content

Bump webpack from 5.37.0 to 5.94.0 #109

Bump webpack from 5.37.0 to 5.94.0

Bump webpack from 5.37.0 to 5.94.0 #109

Workflow file for this run

name: Build
on: [pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
php-versions: [7.4, 8.0]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup .env
run: cp .env.dusk.ci .env
- name: Setup PHP Action
uses: shivammathur/setup-php@v2 #https://github.com/shivammathur/setup-php
with:
php-version: ${{ matrix.php-versions }}
Extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite
coverage: none
- name: Get composer cache directory
id: composercache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
- name: Cache composer dependencies
uses: actions/cache@v2
with:
path:
${{ steps.composercache.outputs.dir }}
# Use composer.json for key, if composer.lock is not committed.
# key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-composer-
- name: Install Dependencies (PHP vendors)
run: composer install --no-progress --no-suggest --prefer-dist --optimize-autoloader
- name: Generate key
run: php artisan key:generate
- name: Run CS Fixer
uses: docker://oskarstark/php-cs-fixer-ga
- name: Get npm cache directory
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install front-end dependencies
run: |
npm install
npm run prod
- name: Create DB and schemas
run: |
mkdir -p storage
touch storage/database.sqlite
php artisan migrate --seed
- name: Run phpstan
run: composer phpstan
- name: Run PHPUnit tests
env:
DB_CONNECTION: sqlite
DB_DATABASE: database.sqlite
run: composer phpunit
- name: Upgrade chrome driver
run: php artisan dusk:chrome-driver `/opt/google/chrome/chrome --version | cut -d " " -f3 | cut -d "." -f1`
- name: Start Chrome Driver
run: ./vendor/laravel/dusk/bin/chromedriver-linux > /dev/null 2>&1 &
- name: Run Laravel Server
run: php artisan serve --no-reload &
- name: Run Websockets Server
run: php artisan websockets:serve > /dev/null 2>&1 &
- name: Run dusk tests
run: php artisan dusk
- name: Upload Logs on failure
if: failure()
uses: actions/upload-artifact@v2
with:
name: logs
path: storage/logs
- name: Upload Dusk Screenshots on error
if: failure()
uses: actions/upload-artifact@v2
with:
name: screenshots
path: tests/Browser/screenshots
- name: Upload Dusk Console Logs on error
if: failure()
uses: actions/upload-artifact@v2
with:
name: console
path: tests/Browser/console