Skip to content

Commit 0f6709a

Browse files
authored
Merge pull request #58 from cakephp/othercorey-patch-1
Update actions/checkout to v2
2 parents 0510b3b + bb5dcdf commit 0f6709a

1 file changed

Lines changed: 5 additions & 11 deletions

File tree

.github/workflows/ci.yml

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,7 @@ jobs:
2121
prefer-lowest: 'prefer-lowest'
2222

2323
steps:
24-
- uses: actions/checkout@v1
25-
with:
26-
fetch-depth: 1
24+
- uses: actions/checkout@v2
2725

2826
- name: Setup PHP
2927
uses: shivammathur/setup-php@v2
@@ -48,9 +46,7 @@ jobs:
4846

4947
- name: Composer install
5048
run: |
51-
if [[ ${{ matrix.php-version }} == '8.0' ]]; then
52-
composer install --ignore-platform-reqs
53-
elif ${{ matrix.prefer-lowest == 'prefer-lowest' }}; then
49+
if ${{ matrix.prefer-lowest == 'prefer-lowest' }}; then
5450
composer update --prefer-lowest --prefer-stable
5551
else
5652
composer install
@@ -69,23 +65,21 @@ jobs:
6965
runs-on: ubuntu-18.04
7066

7167
steps:
72-
- uses: actions/checkout@v1
73-
with:
74-
fetch-depth: 1
68+
- uses: actions/checkout@v2
7569

7670
- name: Setup PHP
7771
uses: shivammathur/setup-php@v2
7872
with:
7973
php-version: '7.4'
8074
extensions: mbstring, intl
8175
coverage: none
82-
tools: psalm:~4.1.0
76+
tools: psalm:~4.1.0, cs2pr
8377

8478
- name: Composer Install
8579
run: composer install
8680

8781
- name: Run phpcs
88-
run: vendor/bin/phpcs -p src/ tests/
82+
run: vendor/bin/phpcs --report=checkstyle src/ tests/ | cs2pr
8983

9084
- name: Run psalm
9185
run: psalm --output-format=github

0 commit comments

Comments
 (0)