-
Notifications
You must be signed in to change notification settings - Fork 63
46 lines (35 loc) · 1.21 KB
/
composer.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Composer
on:
pull_request:
push:
branches:
- master
- stable*
jobs:
php:
runs-on: ubuntu-latest
name: Check vendor changes
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 )"