Skip to content

Commit 783d2d4

Browse files
authored
Update actions/checkout to v2
1 parent 0510b3b commit 783d2d4

1 file changed

Lines changed: 4 additions & 10 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 10 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,9 +65,7 @@ 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
@@ -85,7 +79,7 @@ jobs:
8579
run: composer install
8680

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

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

0 commit comments

Comments
 (0)