Skip to content

Commit

Permalink
Use composer-normalize action (#1299)
Browse files Browse the repository at this point in the history
  • Loading branch information
spawnia authored Apr 19, 2020
1 parent f67d908 commit b73a6f6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 29 deletions.
32 changes: 4 additions & 28 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
"require": {
"php": ">= 7.1",
"ext-json": "*",
"nesbot/carbon": "^1.26.0 || ^2.0",
"illuminate/auth": "5.5.* || 5.6.* || 5.7.* || 5.8.* || ^6.0 || ^7.0",
"illuminate/bus": "5.5.* || 5.6.* || 5.7.* || 5.8.* || ^6.0 || ^7.0",
"illuminate/contracts": "5.5.* || 5.6.* || 5.7.* || 5.8.* || ^6.0 || ^7.0",
Expand All @@ -35,6 +34,7 @@
"illuminate/routing": "5.5.* || 5.6.* || 5.7.* || 5.8.* || ^6.0 || ^7.0",
"illuminate/support": "5.5.* || 5.6.* || 5.7.* || 5.8.* || ^6.0 || ^7.0",
"illuminate/validation": "5.5.* || 5.6.* || 5.7.* || 5.8.* || ^6.0 || ^7.0",
"nesbot/carbon": "^1.26.0 || ^2.0",
"webonyx/graphql-php": "^0.13.2"
},
"require-dev": {
Expand Down

0 comments on commit b73a6f6

Please sign in to comment.