chore(deps): update dependency axios to v1.7.7 #3216
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@v4 | |
- name: Copy .env | |
run: php -r "file_exists('.env') || copy('.env.example', '.env');" | |
- name: Cache Composer dependencies | |
uses: actions/cache@v4 | |
with: | |
path: /tmp/composer-cache | |
key: ${{ runner.os }}-${{ hashFiles('**/composer.lock') }} | |
- 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 | |
coverage: none | |
- 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: 16 | |
check-latest: true | |
cache: yarn | |
- name: Install NPM dependencies | |
run: yarn install | |
- name: Compile assets for production | |
run: yarn 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 }} |