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

4
.github/workflows/.pipeline.yml

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

6
composer.json

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

Loading…
Cancel
Save