Browse Source

Update CI pipeline and composer commands (#283)

pull/285/head
Steel Wagstaff 3 years ago committed by GitHub
parent
commit
f30f5cddca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      .github/dependabot.yml
  2. 4
      .github/workflows/.pipeline.yml
  3. 6
      composer.json

4
.github/dependabot.yml

@ -6,7 +6,7 @@ updates:
directory: "/"
# Check for updates monthly
schedule:
interval: "monthly"
interval: "daily"
allow:
# Allow direct updates only (for packages named in package.json)
- dependency-type: "direct"
@ -19,7 +19,7 @@ updates:
directory: "/"
# Check for updates monthly
schedule:
interval: "monthly"
interval: "daily"
allow:
# Allow direct updates only (for packages named in composer.json)
- dependency-type: "direct"

4
.github/workflows/.pipeline.yml

@ -15,7 +15,7 @@ jobs:
matrix:
php: [ 7.3 ]
os: [ ubuntu-18.04 ]
wordpress: [ 5.8, latest ]
wordpress: [ 5.8.1, latest ]
experimental: [false]
include:
- php: 7.4
@ -86,6 +86,7 @@ jobs:
- name: Run Coverage
run: composer require pcov/clobber; vendor/bin/pcov clobber; vendor/bin/phpunit --configuration phpunit.xml --coverage-clover coverage.xml
if: matrix.experimental == false
- name: Run Frontend Tests
run: npm run test
@ -96,6 +97,7 @@ jobs:
- name: Upload Coverage to Codecov
run: bash <(curl -s https://codecov.io/bash)
if: matrix.experimental == false
- name: Prepare Build
if: startsWith(github.ref, 'refs/tags/')

6
composer.json

@ -36,8 +36,10 @@
},
"scripts": {
"test": [
"vendor/bin/phpunit --configuration phpunit.xml --coverage-clover coverage.xml",
"@standards"
"vendor/bin/phpunit --configuration phpunit.xml"
],
"test-coverage": [
"vendor/bin/phpunit --configuration phpunit.xml --coverage-clover coverage.xml --coverage-html=./coverage-reports"
],
"standards": [
"vendor/bin/phpcs --standard=phpcs.ruleset.xml inc partials *.php"

Loading…
Cancel
Save