-
-
Notifications
You must be signed in to change notification settings - Fork 439
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use composer-normalize action (#1299)
- Loading branch information
Showing
2 changed files
with
5 additions
and
29 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,41 +14,17 @@ env: | |
LIGHTHOUSE_TEST_DB_PASSWORD: "root" | ||
|
||
jobs: | ||
coding-standards: | ||
name: "Coding Standards" | ||
composer-normalize: | ||
name: "composer-normalize" | ||
|
||
runs-on: "ubuntu-latest" | ||
|
||
strategy: | ||
matrix: | ||
php-version: | ||
- "7.4" | ||
laravel-version: | ||
- "^7.0" | ||
|
||
steps: | ||
- name: "Checkout" | ||
uses: "actions/[email protected]" | ||
|
||
- name: "Install PHP with extensions" | ||
uses: "shivammathur/[email protected]" | ||
with: | ||
coverage: "none" | ||
extensions: "${{ env.REQUIRED_PHP_EXTENSIONS }}" | ||
php-version: "${{ matrix.php-version }}" | ||
|
||
- name: "Cache dependencies installed with composer" | ||
uses: "actions/[email protected]" | ||
with: | ||
path: "~/.composer/cache" | ||
key: "php-${{ matrix.php-version }}-composer-${{ matrix.laravel-version }}" | ||
restore-keys: "php-${{ matrix.php-version }}-composer-${{ matrix.laravel-version }}-" | ||
|
||
- name: "Install dependencies with composer" | ||
run: "composer require illuminate/contracts:${{ matrix.laravel-version }} --no-interaction --prefer-dist --no-interaction --no-suggest" | ||
|
||
- name: "Run ergebnis/composer-normalize" | ||
run: "composer normalize --dry-run" | ||
- name: "Run composer normalize" | ||
uses: "docker://localheinz/composer-normalize-action:0.5.2" | ||
|
||
static-code-analysis: | ||
name: "Static Code Analysis" | ||
|
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