Skip to content

Commit

Permalink
Bump 20240425 (#602)
Browse files Browse the repository at this point in the history
* composer update

* Update CodeQL workflow configuration

* Add Enlightn workflow configuration

* Add Enlightn workflow configuration

* Update cache and queue drivers in .env.example
  • Loading branch information
vincentauger authored Apr 25, 2024
1 parent 9c025dd commit cc739ff
Show file tree
Hide file tree
Showing 6 changed files with 179 additions and 289 deletions.
4 changes: 2 additions & 2 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ DB_USERNAME=root
DB_PASSWORD=

BROADCAST_DRIVER=log
CACHE_DRIVER=array
CACHE_DRIVER=redis
FILESYSTEM_DISK=local
QUEUE_CONNECTION=sync
QUEUE_CONNECTION=redis
SESSION_DRIVER=file
SESSION_LIFETIME=120

Expand Down
78 changes: 40 additions & 38 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@
# supported CodeQL languages.
# https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/customizing-your-advanced-setup-for-code-scanning#specifying-directories-to-scan
#
name: "CodeQL"
name: 'CodeQL'

on:
pull_request:
branches: [ "main" ]
branches: ['main']
paths-ignore:
- '**/*.md'
schedule:
Expand Down Expand Up @@ -45,8 +45,8 @@ jobs:
fail-fast: false
matrix:
include:
- language: javascript-typescript
build-mode: none
- language: javascript-typescript
build-mode: none
# CodeQL supports the following values keywords for 'language': 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'swift'
# Use `c-cpp` to analyze code written in C, C++ or both
# Use 'java-kotlin' to analyze code written in Java, Kotlin or both
Expand All @@ -56,41 +56,43 @@ jobs:
# If you are analyzing a compiled language, you can modify the 'build-mode' for that language to customize how
# your codebase is analyzed, see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/codeql-code-scanning-for-compiled-languages
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Checkout repository
uses: actions/checkout@v4

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
build-mode: ${{ matrix.build-mode }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
build-mode: ${{ matrix.build-mode }}
config: |
paths:
- resources/src
paths-ignore:
- public/vendor
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.

# For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
# queries: security-extended,security-and-quality
# For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
# queries: security-extended,security-and-quality

# If the analyze step fails for one of the languages you are analyzing with
# "We were unable to automatically build your code", modify the matrix above
# to set the build mode to "manual" for that language. Then modify this step
# to build your code.
# ℹ️ Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
- if: matrix.build-mode == 'manual'
run: |
echo 'If you are using a "manual" build mode for one or more of the' \
'languages you are analyzing, replace this with the commands to build' \
'your code, for example:'
echo ' make bootstrap'
echo ' make release'
exit 1
# If the analyze step fails for one of the languages you are analyzing with
# "We were unable to automatically build your code", modify the matrix above
# to set the build mode to "manual" for that language. Then modify this step
# to build your code.
# ℹ️ Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
- if: matrix.build-mode == 'manual'
run: |
echo 'If you are using a "manual" build mode for one or more of the' \
'languages you are analyzing, replace this with the commands to build' \
'your code, for example:'
echo ' make bootstrap'
echo ' make release'
exit 1
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{matrix.language}}"
config: |
- public/vendor
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: '/language:${{matrix.language}}'
45 changes: 45 additions & 0 deletions .github/workflows/enlightn.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Enlightn Checks

on:
pull_request:
branches: ['main']
paths-ignore:
- '**/*.md'

jobs:
tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: [8.3]

name: P${{ matrix.php }}

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip, json
coverage: none

- name: Install dependencies
env:
ENLIGHTN_USERNAME: ${{ secrets.ENLIGHTN_USERNAME }}
ENLIGHTN_API_TOKEN: ${{ secrets.ENLIGHTN_API_TOKEN }}
run: |
composer install --prefer-dist --no-interaction --no-progress --no-scripts
- 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: |
cp .env.example .env
php artisan enlightn --ci --report --review --issue=${{ github.event.number }}
22 changes: 11 additions & 11 deletions .phpstorm.meta.php
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@
'migrator' => \Illuminate\Database\Migrations\Migrator::class,
'pipeline' => \Illuminate\Pipeline\Pipeline::class,
'queue' => \Illuminate\Queue\QueueManager::class,
'queue.connection' => \Laravel\Horizon\RedisQueue::class,
'queue.connection' => \Illuminate\Queue\SyncQueue::class,
'queue.failer' => \Illuminate\Queue\Failed\DatabaseUuidFailedJobProvider::class,
'queue.listener' => \Illuminate\Queue\Listener::class,
'queue.worker' => \Illuminate\Queue\Worker::class,
Expand Down Expand Up @@ -520,7 +520,7 @@
'migrator' => \Illuminate\Database\Migrations\Migrator::class,
'pipeline' => \Illuminate\Pipeline\Pipeline::class,
'queue' => \Illuminate\Queue\QueueManager::class,
'queue.connection' => \Laravel\Horizon\RedisQueue::class,
'queue.connection' => \Illuminate\Queue\SyncQueue::class,
'queue.failer' => \Illuminate\Queue\Failed\DatabaseUuidFailedJobProvider::class,
'queue.listener' => \Illuminate\Queue\Listener::class,
'queue.worker' => \Illuminate\Queue\Worker::class,
Expand Down Expand Up @@ -784,7 +784,7 @@
'migrator' => \Illuminate\Database\Migrations\Migrator::class,
'pipeline' => \Illuminate\Pipeline\Pipeline::class,
'queue' => \Illuminate\Queue\QueueManager::class,
'queue.connection' => \Laravel\Horizon\RedisQueue::class,
'queue.connection' => \Illuminate\Queue\SyncQueue::class,
'queue.failer' => \Illuminate\Queue\Failed\DatabaseUuidFailedJobProvider::class,
'queue.listener' => \Illuminate\Queue\Listener::class,
'queue.worker' => \Illuminate\Queue\Worker::class,
Expand Down Expand Up @@ -1048,7 +1048,7 @@
'migrator' => \Illuminate\Database\Migrations\Migrator::class,
'pipeline' => \Illuminate\Pipeline\Pipeline::class,
'queue' => \Illuminate\Queue\QueueManager::class,
'queue.connection' => \Laravel\Horizon\RedisQueue::class,
'queue.connection' => \Illuminate\Queue\SyncQueue::class,
'queue.failer' => \Illuminate\Queue\Failed\DatabaseUuidFailedJobProvider::class,
'queue.listener' => \Illuminate\Queue\Listener::class,
'queue.worker' => \Illuminate\Queue\Worker::class,
Expand Down Expand Up @@ -1312,7 +1312,7 @@
'migrator' => \Illuminate\Database\Migrations\Migrator::class,
'pipeline' => \Illuminate\Pipeline\Pipeline::class,
'queue' => \Illuminate\Queue\QueueManager::class,
'queue.connection' => \Laravel\Horizon\RedisQueue::class,
'queue.connection' => \Illuminate\Queue\SyncQueue::class,
'queue.failer' => \Illuminate\Queue\Failed\DatabaseUuidFailedJobProvider::class,
'queue.listener' => \Illuminate\Queue\Listener::class,
'queue.worker' => \Illuminate\Queue\Worker::class,
Expand Down Expand Up @@ -1576,7 +1576,7 @@
'migrator' => \Illuminate\Database\Migrations\Migrator::class,
'pipeline' => \Illuminate\Pipeline\Pipeline::class,
'queue' => \Illuminate\Queue\QueueManager::class,
'queue.connection' => \Laravel\Horizon\RedisQueue::class,
'queue.connection' => \Illuminate\Queue\SyncQueue::class,
'queue.failer' => \Illuminate\Queue\Failed\DatabaseUuidFailedJobProvider::class,
'queue.listener' => \Illuminate\Queue\Listener::class,
'queue.worker' => \Illuminate\Queue\Worker::class,
Expand Down Expand Up @@ -1840,7 +1840,7 @@
'migrator' => \Illuminate\Database\Migrations\Migrator::class,
'pipeline' => \Illuminate\Pipeline\Pipeline::class,
'queue' => \Illuminate\Queue\QueueManager::class,
'queue.connection' => \Laravel\Horizon\RedisQueue::class,
'queue.connection' => \Illuminate\Queue\SyncQueue::class,
'queue.failer' => \Illuminate\Queue\Failed\DatabaseUuidFailedJobProvider::class,
'queue.listener' => \Illuminate\Queue\Listener::class,
'queue.worker' => \Illuminate\Queue\Worker::class,
Expand Down Expand Up @@ -2104,7 +2104,7 @@
'migrator' => \Illuminate\Database\Migrations\Migrator::class,
'pipeline' => \Illuminate\Pipeline\Pipeline::class,
'queue' => \Illuminate\Queue\QueueManager::class,
'queue.connection' => \Laravel\Horizon\RedisQueue::class,
'queue.connection' => \Illuminate\Queue\SyncQueue::class,
'queue.failer' => \Illuminate\Queue\Failed\DatabaseUuidFailedJobProvider::class,
'queue.listener' => \Illuminate\Queue\Listener::class,
'queue.worker' => \Illuminate\Queue\Worker::class,
Expand Down Expand Up @@ -2368,7 +2368,7 @@
'migrator' => \Illuminate\Database\Migrations\Migrator::class,
'pipeline' => \Illuminate\Pipeline\Pipeline::class,
'queue' => \Illuminate\Queue\QueueManager::class,
'queue.connection' => \Laravel\Horizon\RedisQueue::class,
'queue.connection' => \Illuminate\Queue\SyncQueue::class,
'queue.failer' => \Illuminate\Queue\Failed\DatabaseUuidFailedJobProvider::class,
'queue.listener' => \Illuminate\Queue\Listener::class,
'queue.worker' => \Illuminate\Queue\Worker::class,
Expand Down Expand Up @@ -2632,7 +2632,7 @@
'migrator' => \Illuminate\Database\Migrations\Migrator::class,
'pipeline' => \Illuminate\Pipeline\Pipeline::class,
'queue' => \Illuminate\Queue\QueueManager::class,
'queue.connection' => \Laravel\Horizon\RedisQueue::class,
'queue.connection' => \Illuminate\Queue\SyncQueue::class,
'queue.failer' => \Illuminate\Queue\Failed\DatabaseUuidFailedJobProvider::class,
'queue.listener' => \Illuminate\Queue\Listener::class,
'queue.worker' => \Illuminate\Queue\Worker::class,
Expand Down Expand Up @@ -2896,7 +2896,7 @@
'migrator' => \Illuminate\Database\Migrations\Migrator::class,
'pipeline' => \Illuminate\Pipeline\Pipeline::class,
'queue' => \Illuminate\Queue\QueueManager::class,
'queue.connection' => \Laravel\Horizon\RedisQueue::class,
'queue.connection' => \Illuminate\Queue\SyncQueue::class,
'queue.failer' => \Illuminate\Queue\Failed\DatabaseUuidFailedJobProvider::class,
'queue.listener' => \Illuminate\Queue\Listener::class,
'queue.worker' => \Illuminate\Queue\Worker::class,
Expand Down
Loading

0 comments on commit cc739ff

Please sign in to comment.