From 0e4c82354666518dcf3c3325e7e6d53e4d43b1c5 Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Mon, 1 Aug 2022 10:06:39 +1200 Subject: [PATCH] MNT Standardise modules --- .github/workflows/ci.yml | 2 +- .github/workflows/keepalive.yml | 2 +- .scrutinizer.yml | 12 ------------ .travis.yml | 10 ---------- README.md | 9 +-------- phpunit.xml.dist | 1 + 6 files changed, 4 insertions(+), 32 deletions(-) delete mode 100644 .scrutinizer.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8a145a06..29400588 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 ebf9716b..4cf5fbb2 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 fbccd223..00000000 --- a/.scrutinizer.yml +++ /dev/null @@ -1,12 +0,0 @@ -checks: - php: true - -build: - nodes: - analysis: - tests: - override: [php-scrutinizer-run] - -filter: - paths: ["src/*", "tests/*"] - diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 33df8f44..00000000 --- a/.travis.yml +++ /dev/null @@ -1,10 +0,0 @@ -version: ~> 1.0 - -import: - - silverstripe/silverstripe-travis-shared:config/provision/standard-jobs-fixed-behat-npm.yml - -env: - global: - - COMPOSER_ROOT_VERSION="4.x-dev" - - REQUIRE_RECIPE="4.x-dev" - - BEHAT_SUITE="silverstripe-elemental" diff --git a/README.md b/README.md index d89a93dd..1d582a51 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,7 @@ # Silverstripe CMS Elemental [![CI](https://github.com/silverstripe/silverstripe-elemental/actions/workflows/ci.yml/badge.svg)](https://github.com/silverstripe/silverstripe-elemental/actions/workflows/ci.yml) -[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/silverstripe/silverstripe-elemental/badges/quality-score.png?b=4)](https://scrutinizer-ci.com/g/silverstripe/silverstripe-elemental/?branch=4) -[![codecov](https://codecov.io/gh/silverstripe/silverstripe-elemental/branch/4/graph/badge.svg)](https://codecov.io/gh/silverstripe/silverstripe-elemental) -[![Silverstripe CMS supported module](https://img.shields.io/badge/silverstripe-supported-0071C4.svg)](https://www.silverstripe.org/software/addons/silverstripe-commercially-supported-module-list/) -[![Version](http://img.shields.io/packagist/v/dnadesign/silverstripe-elemental.svg?style=flat)](https://packagist.org/packages/dnadesign/silverstripe-elemental) -[![License](https://poser.pugx.org/dnadesign/silverstripe-elemental/license.svg)](LICENSE.md) +[![Silverstripe supported module](https://img.shields.io/badge/silverstripe-supported-0071C4.svg)](https://www.silverstripe.org/software/addons/silverstripe-commercially-supported-module-list/) ## Introduction @@ -231,7 +227,6 @@ structure (PHP class namespace) to ensure that your new template version takes p convention, which allows developers to style individual parts of the DOM without unnecessarily nested CSS. Where possible, we encourage you to follow this naming system. - #### Position Helpers In your `BaseElement` template you can use the following variables for additional @@ -244,7 +239,6 @@ methods work either returning a `Boolean`, `String` or a `Int` 1. `$TotalItems` (int) 1. `$EvenOdd` (string - 'even' or 'odd') - ```
// ... @@ -265,7 +259,6 @@ DNADesign\Elemental\Models\ElementContent: dark: 'Dark Background' ``` - ### Disabling the default stylesheets When installing this module, there may be a default set of CSS stylesheets that come to provide some examples for the diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 0d087d59..2dbbe210 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -1,3 +1,4 @@ +