Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,38 @@ jobs:
# Check that dependencies resolve.
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction

test-composer-normalized:
name: Check that composer.json is normalized
runs-on: ubuntu-latest
strategy:
matrix:
php-versions: [ '8.3' ]
dependency-version: [ prefer-lowest, prefer-stable ]
steps:
- uses: actions/checkout@master
- name: Setup PHP, with composer and extensions
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
extensions: json
coverage: none
tools: composer:v2
# https://github.com/shivammathur/setup-php#cache-composer-dependencies
- name: Get composer cache directory
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
- name: Cache dependencies
uses: actions/cache@v4
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-composer-
- name: Check that composer.json is normalized
run: |
composer install
# Check that dependencies resolve.
composer normalize --dry-run

php-check-coding-standards:
name: PHP - Check Coding Standards
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ about writing changes to this log.

## [Unreleased]

* [PR-22](https://github.com/OS2Forms/os2forms_get_organized/pull/22)
Normalized `composer.json`

## [1.4.1] 12.03.2025

* Allowed `os2forms/os2forms` 4.0.
Expand Down
66 changes: 34 additions & 32 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,63 +1,65 @@
{
"name": "os2forms/os2forms_get_organized",
"description": "OS2Forms GetOrganized integration",
"type": "drupal-module",
"license": "MIT",
"type": "drupal-module",
"authors": [
{
"name": "Jeppe Kuhlmann Andersen",
"email": "[email protected]"
}
],
"minimum-stability": "dev",
"prefer-stable": true,
"repositories": [
{
"type": "composer",
"url": "https://packages.drupal.org/8"
}
],
"require": {
"itk-dev/getorganized-api-client-php": "^1.2.2",
"drupal/webform": "^6.2",
"drupal/advancedqueue": "^1.2",
"symfony/options-resolver": "^5.4 || ^6.0",
"os2forms/os2forms": "^3.17 || ^4.0"
"drupal/webform": "^6.2",
"itk-dev/getorganized-api-client-php": "^1.2.2",
"os2forms/os2forms": "^3.17 || ^4.0",
"symfony/options-resolver": "^5.4 || ^6.0"
},
"require-dev": {
"drupal/coder": "^8.3",
"dealerdirect/phpcodesniffer-composer-installer": "^0.7.1",
"drupal/coder": "^8.3",
"ergebnis/composer-normalize": "^2.47",
"mglaman/drupal-check": "^1.4",
"mglaman/phpstan-drupal": "~1.2.0"
},
"repositories": [
{
"type": "composer",
"url": "https://packages.drupal.org/8"
}
],
"minimum-stability": "dev",
"prefer-stable": true,
"config": {
"allow-plugins": {
"cweagans/composer-patches": true,
"dealerdirect/phpcodesniffer-composer-installer": true,
"ergebnis/composer-normalize": true,
"mglaman/composer-drupal-lenient": true,
"simplesamlphp/composer-module-installer": true,
"zaporylie/composer-drupal-optimizations": true
}
},
"scripts": {
"code-analysis": [
"@code-analysis/drupal-check"
],
"code-analysis/drupal-check": [
"# @see https://github.com/mglaman/drupal-check/issues/261#issuecomment-1030141772 for details on exclude-dir value",
"drupal-check --deprecations --analysis --exclude-dir='vendor,*/Client/*' *.* src"
],
"code-analysis": [
"@code-analysis/drupal-check"
"coding-standards-apply": [
"@coding-standards-apply/phpcs"
],
"coding-standards-check/phpcs": [
"vendor/bin/phpcs --standard=phpcs.xml.dist"
"coding-standards-apply/phpcs": [
"vendor/bin/phpcbf --standard=phpcs.xml.dist"
],
"coding-standards-check": [
"@coding-standards-check/phpcs"
],
"coding-standards-apply/phpcs": [
"vendor/bin/phpcbf --standard=phpcs.xml.dist"
],
"coding-standards-apply": [
"@coding-standards-apply/phpcs"
"coding-standards-check/phpcs": [
"vendor/bin/phpcs --standard=phpcs.xml.dist"
]
},
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true,
"zaporylie/composer-drupal-optimizations": true,
"cweagans/composer-patches": true,
"simplesamlphp/composer-module-installer": true,
"mglaman/composer-drupal-lenient": true
}
}
}
Loading