Fix the default queue connection to be the sync driver. #29
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: CI | |
on: push | |
jobs: | |
build: | |
name: "Build and Test" | |
runs-on: ubuntu-latest | |
steps: | |
- name: "checkout repository" | |
uses: actions/checkout@v3 | |
- name: "setup PHP 8.3" | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: "8.3" | |
tools: composer | |
coverage: none | |
- name: "get composer cache directory" | |
id: composer-cache | |
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT | |
- name: "cache dependencies" | |
uses: actions/cache@v3 | |
with: | |
path: ${{ steps.composer-cache.outputs.dir }} | |
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} | |
restore-keys: ${{ runner.os }}-composer- | |
- name: "install dependencies" | |
run: composer install --prefer-dist | |
- name: "run pint" | |
run: php ./vendor/bin/pint --test | |
- name: "setup node v20.12.2" | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 20.12.2 | |
cache: 'npm' | |
- name: "install node dependencies" | |
run: npm ci | |
- name: "run blade formatter" | |
run: "./node_modules/.bin/blade-formatter \"./resources/**/*.blade.php\" -c -d" | |
- name: "run PHPStan" | |
run: php ./vendor/bin/phpstan analyse | |
- name: "copy .env.example to .env" | |
run: cp .env.example .env | |
- name: "set the application key" | |
run: php artisan key:generate | |
- name: "build assets" | |
run: npm run build | |
- name: "run tests" | |
run: php artisan test | |
- name: "run artisan config:cache" | |
run: php artisan config:cache | |
- name: "run artisan event:cache" | |
run: php artisan event:cache | |
- name: "run artisan route:cache" | |
run: php artisan route:cache | |
- name: "run artisan view:cache" | |
run: php artisan view:cache | |
- name: "run artisan optimize" | |
run: php artisan optimize | |
# deploy: | |
# name: "deploy" | |
# needs: [build] | |
# runs-on: ubuntu-latest | |
# if: github.ref == 'refs/heads/main' | |
# steps: | |
# - name: "Hit deploy URL" | |
# run: curl -X POST -d '' https://forge.laravel.com/servers/${GITHUB_FORGE_SERVER}/sites/${GITHUB_FORGE_SITE}/deploy/http?token=${GITHUB_FORGE_TOKEN} |