Skip to content

Commit

Permalink
Merge pull request #1303 from nextcloud/techdebt/noid/enforce-install…
Browse files Browse the repository at this point in the history
…-no-dev

Enforce to install with --no-dev
  • Loading branch information
blizzz committed Feb 2, 2023
2 parents 1e24b9c + 7ec4f6a commit 0ec7363
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 4 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/composer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,32 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@master

- name: Set up php
uses: shivammathur/setup-php@master
with:
php-version: 8.1
coverage: none

- name: Enforce --no-dev
run: |
bash -c "[[ \"`cat composer/installed.json | jq .dev`\" == \"false\" ]] || ( echo 'Please only commit after installing with \"composer install --no-dev\"' && exit 1 )"
- name: Update composer
run: sudo composer self-update && composer --version

- name: Delete dependencies
run: rm -rf ./*/

- name: Download dependencies
run: composer install --no-dev

- name: Remove tests and other untracked files
run: git clean -X -d -f

- name: Dump Autoload
run: composer dump-autoload

- name: Check vendor changes
run: |
bash -c "[[ ! \"`git status --porcelain . ':!composer/installed.json' ':!composer/installed.php' ':!composer/package-versions-deprecated/src/PackageVersions/Versions.php' `\" ]] || ( echo 'Uncommited vendor changes' && git status && git diff && exit 1 )"
2 changes: 1 addition & 1 deletion composer/installed.json
Original file line number Diff line number Diff line change
Expand Up @@ -7045,6 +7045,6 @@
"install-path": "../web-auth/webauthn-lib"
}
],
"dev": true,
"dev": false,
"dev-package-names": []
}
6 changes: 3 additions & 3 deletions composer/installed.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
'name' => 'nextcloud/3rdparty',
'pretty_version' => 'dev-master',
'version' => 'dev-master',
'reference' => 'b31aba0505a3daf84b016f52873794b618694dff',
'reference' => '7290f9d6d76016c7a6c06f0e58a780101df3fc41',
'type' => 'library',
'install_path' => __DIR__ . '/../',
'aliases' => array(),
'dev' => true,
'dev' => false,
),
'versions' => array(
'aws/aws-crt-php' => array(
Expand Down Expand Up @@ -328,7 +328,7 @@
'nextcloud/3rdparty' => array(
'pretty_version' => 'dev-master',
'version' => 'dev-master',
'reference' => 'b31aba0505a3daf84b016f52873794b618694dff',
'reference' => '7290f9d6d76016c7a6c06f0e58a780101df3fc41',
'type' => 'library',
'install_path' => __DIR__ . '/../',
'aliases' => array(),
Expand Down

0 comments on commit 0ec7363

Please sign in to comment.