From 1b703c6b484df55f9ad53d5417ba9961a198cd46 Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Tue, 2 Aug 2022 18:05:09 +1200 Subject: [PATCH] MNT Standardise modules --- .github/workflows/ci.yml | 2 +- .github/workflows/keepalive.yml | 2 +- .scrutinizer.yml | 15 --------------- .travis.yml | 16 ---------------- README.md | 6 ++---- phpunit.xml.dist | 1 + 6 files changed, 5 insertions(+), 37 deletions(-) delete mode 100644 .scrutinizer.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f60d382..3b47551 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,5 +12,5 @@ jobs: ci: name: CI # Only run cron on the silverstripe account - if: (github.event_name == 'schedule' && startsWith(github.repository, 'silverstripe/')) || (github.event_name != 'schedule') + if: (github.event_name == 'schedule' && github.repository_owner == 'silverstripe') || (github.event_name != 'schedule') uses: silverstripe/gha-ci/.github/workflows/ci.yml@v1 diff --git a/.github/workflows/keepalive.yml b/.github/workflows/keepalive.yml index ebf9716..4cf5fbb 100644 --- a/.github/workflows/keepalive.yml +++ b/.github/workflows/keepalive.yml @@ -10,7 +10,7 @@ jobs: keepalive: name: Keepalive # Only run cron on the silverstripe account - if: (github.event_name == 'schedule' && startsWith(github.repository, 'silverstripe/')) || (github.event_name != 'schedule') + if: (github.event_name == 'schedule' && github.repository_owner == 'silverstripe') || (github.event_name != 'schedule') runs-on: ubuntu-latest steps: - name: Keepalive diff --git a/.scrutinizer.yml b/.scrutinizer.yml deleted file mode 100644 index 051ef9a..0000000 --- a/.scrutinizer.yml +++ /dev/null @@ -1,15 +0,0 @@ -inherit: true - -build: - nodes: - analysis: - tests: - override: [php-scrutinizer-run] - -checks: - php: - code_rating: true - duplication: true - -filter: - paths: [src/*, tests/*] diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 746ed06..0000000 --- a/.travis.yml +++ /dev/null @@ -1,16 +0,0 @@ -version: ~> 1.0 - -import: - - silverstripe/silverstripe-travis-shared:config/provision/standard-jobs-range.yml - -jobs: - include: - - php: 7.4 - env: - - DB=MYSQL - - PHPUNIT_TEST=1 - - CRONTASK=1 - -before_script: - - if [[ $CRONTASK ]]; then composer require silverstripe/crontask:^2; fi - diff --git a/README.md b/README.md index 29a026e..60734ee 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,7 @@ # CWP PDF Export [![CI](https://github.com/silverstripe/cwp-pdfexport/actions/workflows/ci.yml/badge.svg)](https://github.com/silverstripe/cwp-pdfexport/actions/workflows/ci.yml) -[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/silverstripe/cwp-pdfexport/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/silverstripe/cwp-pdfexport/?branch=master) -[![codecov](https://codecov.io/gh/silverstripe/cwp-pdfexport/branch/master/graph/badge.svg)](https://codecov.io/gh/silverstripe/cwp-pdfexport) -[![SilverStripe supported module](https://img.shields.io/badge/silverstripe-supported-0071C4.svg)](https://www.silverstripe.org/software/addons/silverstripe-commercially-supported-module-list/) +[![Silverstripe supported module](https://img.shields.io/badge/silverstripe-supported-0071C4.svg)](https://www.silverstripe.org/software/addons/silverstripe-commercially-supported-module-list/) This module provides additional functionality for CWP pages to be exported as a PDF. @@ -30,5 +28,5 @@ Bugs are tracked on [github.com](https://github.com/silverstripe/cwp-pdfexport/i ## Contributing -If you would like to make changes to the SilverStripe core codebase, extra modules or the CWP core codebase, we have +If you would like to make changes to the Silverstripe core codebase, extra modules or the CWP core codebase, we have an extensive [guide to contributing code](https://docs.silverstripe.org/en/contributing/code). diff --git a/phpunit.xml.dist b/phpunit.xml.dist index b543ea6..e94dedb 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -1,3 +1,4 @@ + tests/