-
Notifications
You must be signed in to change notification settings - Fork 1
50 lines (37 loc) · 1.19 KB
/
ci.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
47
48
49
50
name: CI
on: [push, pull_request, workflow_dispatch]
jobs:
validation:
name: Validation
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '7.4'
extensions: mbstring, intl, bcmath
coverage: none
- name: Composer Install
run: composer install --prefer-dist --no-interaction --profile
- name: Run validation
run: composer validate
lowest:
name: Prefer Lowest
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '7.3'
extensions: mbstring, intl, bcmath
coverage: none
- name: Composer Install
run: composer install --prefer-dist --no-interaction --profile
- name: Composer Update
run: composer update --prefer-lowest --prefer-dist --no-interaction --profile -vvv
- name: Composer Install prefer lowest tool
run: composer require --dev dereuromark/composer-prefer-lowest;
- name: Run validation
run: vendor/bin/validate-prefer-lowest