1
0
mirror of https://github.com/Kovah/LinkAce.git synced 2025-04-21 07:22:20 +02:00

Update config for Enlightn

This commit is contained in:
Kovah 2021-03-05 22:53:46 +01:00
parent 72e200b4a5
commit 99d5beed1c
No known key found for this signature in database
GPG Key ID: AAAA031BA9830D7B
2 changed files with 31 additions and 2 deletions

View File

@ -61,7 +61,7 @@ jobs:
uses: shivammathur/setup-php@v1
with:
php-version: ${{ matrix.php-versions }}
extensions: mbstring
extensions: dom, curl, libxml, mbstring, zip, json
- name: Get Composer Cache Directory
id: composer-cache
@ -81,7 +81,12 @@ jobs:
run: composer validate
- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-suggest
env:
ENLIGHTN_USERNAME: ${{ secrets.ENLIGHTN_USERNAME }}
ENLIGHTN_API_TOKEN: ${{ secrets.ENLIGHTN_API_TOKEN }}
run: |
composer config http-basic.satis.laravel-enlightn.com "$ENLIGHTN_USERNAME" "$ENLIGHTN_API_TOKEN"
composer install --prefer-dist --no-progress --no-suggest
- name: Run PHP CS
run: composer run lint
@ -89,6 +94,13 @@ jobs:
- name: Run PHPunit
run: composer run test
- name: Run Enlightn
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 }}
- uses: actions/upload-artifact@v1
if: failure()
with:

View File

@ -115,4 +115,21 @@ return [
storage_path(),
app()->bootstrapPath('cache'),
],
/*
|--------------------------------------------------------------------------
| Credentials
|--------------------------------------------------------------------------
|
| The following credentials are used to share your Enlightn report with
| the Enlightn Github Bot. This allows the bot to compile the report
| and add review comments on your pull requests.
|
*/
'credentials' => [
'username' => env('ENLIGHTN_USERNAME'),
'api_token' => env('ENLIGHTN_API_TOKEN'),
],
'github_repo' => env('ENLIGHTN_GITHUB_REPO', 'Kovah/LinkAce'),
];