Skip to content

Commit 805a077

Browse files
authored
Merge pull request #32 from stronk7/bump_checkout_action
Bump to actions/checkout@v3
2 parents 522bb7b + c45129e commit 805a077

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.github/workflows/phpcs.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- php: 7.4
1616
steps:
1717
- name: Check out repository code
18-
uses: actions/checkout@v2
18+
uses: actions/checkout@v3
1919

2020
- name: Setup PHP ${{ matrix.php }}
2121
uses: shivammathur/setup-php@v2
@@ -24,7 +24,7 @@ jobs:
2424
extensions: ${{ matrix.extensions }}
2525
ini-values: pcov.directory=moodle
2626
coverage: pcov
27-
tools: composer, phpcpd
27+
tools: composer
2828

2929
- name: Install composer dependencies
3030
run: |
@@ -36,9 +36,8 @@ jobs:
3636
./vendor/bin/phplint
3737
3838
- name: PHP Copy/Paste Detector
39-
continue-on-error: true # This step will show errors but will not fail
4039
if: ${{ always() }}
41-
run: phpcpd --exclude moodle/tests moodle
40+
run: ./vendor/bin/phpcpd --exclude moodle/Tests moodle
4241

4342
- name: Run phpunit
4443
if: ${{ always() }}

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@
4141
"mikey179/vfsstream": "^1.6",
4242
"overtrue/phplint": "^3.0",
4343
"phpmd/phpmd": "^2.11",
44-
"thor-juhasz/phpunit-coverage-check": "^0.3.0"
44+
"thor-juhasz/phpunit-coverage-check": "^0.3.0",
45+
"sebastian/phpcpd": "^6.0"
4546
},
4647
"replace": {
4748
"moodlehq/moodle-local_codechecker": "3.1.0"

0 commit comments

Comments
 (0)