chore(deps): update dependency laravel/sail to v1.37.1 #2381
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: Laravel | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
env: | |
DB_HOST: localhost | |
DB_DATABASE: postgres | |
DB_USERNAME: postgres | |
DB_PASSWORD: postgres | |
MEILISEARCH_HOST: http://localhost:7700 | |
services: | |
postgres: | |
image: postgres | |
env: | |
POSTGRES_PASSWORD: postgres | |
options: >- | |
--health-cmd pg_isready | |
--health-interval 10s | |
--health-timeout 5s | |
--health-retries 5 | |
ports: | |
- 5432:5432 | |
meilisearch: | |
image: "getmeili/meilisearch:latest" | |
ports: | |
- "7700:7700" | |
redis: | |
image: "redis:alpine" | |
ports: | |
- "6379:6379" | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Copy .env | |
run: php -r "file_exists('.env') || copy('.env.example', '.env');" | |
- name: Cache Composer dependencies | |
uses: actions/cache@v2 | |
with: | |
path: /tmp/composer-cache | |
key: ${{ runner.os }}-${{ hashFiles('**/composer.lock') }} | |
- name: Install Dependencies | |
run: composer install --no-ansi --no-interaction --no-progress --prefer-dist --no-suggest | |
- name: Generate key | |
run: php artisan key:generate | |
- name: Setup Node.js | |
uses: actions/setup-node@v2-beta | |
with: | |
node-version: 14 | |
check-latest: true | |
- name: Install NPM dependencies | |
run: npm install | |
- name: Compile assets for production | |
run: npm run production | |
- name: Directory Permissions | |
run: chmod -R 777 storage bootstrap/cache | |
- name: Lint | |
run: ./vendor/bin/phpcs | |
- name: Migrate | |
run: | | |
php artisan migrate:fresh --seed | |
php artisan migrate:refresh --seed | |
- name: Test | |
run: php artisan test | |
- name: Run Enlightn Checks and Trigger the Enlightn Bot | |
if: ${{ github.event_name == 'pull_request' }} | |
env: | |
ENLIGHTN_USERNAME: ${{ secrets.ENLIGHTN_USERNAME }} | |
ENLIGHTN_API_TOKEN: ${{ secrets.ENLIGHTN_API_TOKEN }} | |
ENLIGHTN_GITHUB_REPO: ${{ github.repository }} | |
run: php artisan enlightn --ci --report --review --issue=${{ github.event.number }} |