From 16565eb98b235f3706f827ce8205aa2413f5542b Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Mon, 1 Aug 2022 10:45:59 +1200 Subject: [PATCH] MNT Standardise modules --- .github/workflows/ci.yml | 2 +- .github/workflows/keepalive.yml | 2 +- .scrutinizer.yml | 9 --------- .travis.yml | 8 -------- readme.md => README.md | 9 +++------ phpunit.xml.dist | 1 + 6 files changed, 6 insertions(+), 25 deletions(-) delete mode 100644 .scrutinizer.yml delete mode 100644 .travis.yml rename readme.md => README.md (67%) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0b4814e..ae9d378 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 de09355..0000000 --- a/.scrutinizer.yml +++ /dev/null @@ -1,9 +0,0 @@ -inherit: true - -checks: - php: - code_rating: true - duplication: true - -filter: - paths: [src/*, tests/*] diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 8eabb2d..0000000 --- a/.travis.yml +++ /dev/null @@ -1,8 +0,0 @@ -version: ~> 1.0 - -import: - - silverstripe/silverstripe-travis-shared:config/provision/standard-jobs-range-behat.yml - -env: - global: - - REQUIRE_EXTRA="silverstripe/subsites:^2" diff --git a/readme.md b/README.md similarity index 67% rename from readme.md rename to README.md index 19699d0..8f91ac7 100644 --- a/readme.md +++ b/README.md @@ -1,19 +1,16 @@ # Security Report [![CI](https://github.com/silverstripe/silverstripe-securityreport/actions/workflows/ci.yml/badge.svg)](https://github.com/silverstripe/silverstripe-securityreport/actions/workflows/ci.yml) -[![Scrutinizer Code Quality](https://img.shields.io/scrutinizer/g/silverstripe/silverstripe-securityreport.svg)](https://scrutinizer-ci.com/g/silverstripe/silverstripe-securityreport/?branch=master) -[![codecov](https://img.shields.io/codecov/c/github/silverstripe/silverstripe-securityreport.svg)](https://codecov.io/gh/silverstripe/silverstripe-securityreport) -[![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 adds a "Users, Groups and Permissions" report in the CMS, so that an administrator can get a quick overview of who has access to the CMS. ## Requirements -* SilverStripe 4.0+ - -**Note:** For SilverStripe 3.x, please use the [1.x release line](https://github.com/silverstripe/silverstripe-securityreport/tree/1.0). +* Silverstripe 4.0+ +**Note:** For Silverstripe 3.x, please use the [1.x release line](https://github.com/silverstripe/silverstripe-securityreport/tree/1.0). ## Install diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 0282bda..932ac33 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -1,3 +1,4 @@ +