diff --git a/.codecov.yml b/.codecov.yml deleted file mode 100644 index 69cb760..0000000 --- a/.codecov.yml +++ /dev/null @@ -1 +0,0 @@ -comment: false diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..21d68ad --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,16 @@ +name: CI + +on: + push: + pull_request: + workflow_dispatch: + # Every Sunday at 4:10pm UTC + schedule: + - cron: '10 16 * * 0' + +jobs: + ci: + name: CI + # Only run cron on the bringyourownideas account + if: (github.event_name == 'schedule' && github.repository_owner == 'bringyourownideas') || (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 new file mode 100644 index 0000000..c268a3e --- /dev/null +++ b/.github/workflows/keepalive.yml @@ -0,0 +1,17 @@ +name: Keepalive + +on: + workflow_dispatch: + # The 8th of every month at 4:50pm UTC + schedule: + - cron: '50 16 8 * *' + +jobs: + keepalive: + name: Keepalive + # Only run cron on the bringyourownideas account + if: (github.event_name == 'schedule' && github.repository_owner == 'bringyourownideas') || (github.event_name != 'schedule') + runs-on: ubuntu-latest + steps: + - name: Keepalive + uses: silverstripe/gha-keepalive@v1 diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml deleted file mode 100644 index 3fc1da0..0000000 --- a/.github/workflows/main.yml +++ /dev/null @@ -1,9 +0,0 @@ -name: Module CI - -on: - push: - pull_request: - -jobs: - ci: - uses: silverstripe/github-actions-ci-cd/.github/workflows/ci.yml@v0.1 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/README.md b/README.md index 485e809..93719ed 100644 --- a/README.md +++ b/README.md @@ -1,19 +1,13 @@ -# SilverStripe Composer update checker +# Silverstripe Composer update checker -[![Build Status](https://api.travis-ci.org/bringyourownideas/silverstripe-composer-update-checker.svg?branch=master)](https://travis-ci.org/bringyourownideas/silverstripe-composer-update-checker) -[![Scrutinizer Code Quality](https://img.shields.io/scrutinizer/g/bringyourownideas/silverstripe-composer-update-checker.svg)](https://scrutinizer-ci.com/g/bringyourownideas/silverstripe-composer-update-checker?branch=master) -[![codecov](https://codecov.io/gh/bringyourownideas/silverstripe-composer-update-checker/branch/master/graph/badge.svg)](https://codecov.io/gh/bringyourownideas/silverstripe-composer-update-checker) -[![SilverStripe supported module](https://img.shields.io/badge/silverstripe-supported-0071C4.svg)](https://www.silverstripe.org/software/addons/silverstripe-commercially-supported-module-list/) -[![Latest Stable Version](https://poser.pugx.org/bringyourownideas/silverstripe-composer-update-checker/version.svg)](https://github.com/bringyourownideas/silverstripe-composer-update-checker/releases) -[![Latest Unstable Version](https://poser.pugx.org/bringyourownideas/silverstripe-composer-update-checker/v/unstable.svg)](https://packagist.org/packages/bringyourownideas/silverstripe-composer-update-checker) -[![Total Downloads](https://poser.pugx.org/bringyourownideas/silverstripe-composer-update-checker/downloads.svg)](https://packagist.org/packages/bringyourownideas/silverstripe-composer-update-checker) -[![License](https://poser.pugx.org/bringyourownideas/silverstripe-composer-update-checker/license.svg)](https://github.com/bringyourownideas/silverstripe-composer-update-checker/blob/master/license.md) +[![CI](https://github.com/bringyourownideas/silverstripe-composer-update-checker/actions/workflows/ci.yml/badge.svg)](https://github.com/bringyourownideas/silverstripe-composer-update-checker/actions/workflows/ci.yml) +[![Silverstripe supported module](https://img.shields.io/badge/silverstripe-supported-0071C4.svg)](https://www.silverstripe.org/software/addons/silverstripe-commercially-supported-module-list/) Checks if any of your Composer dependencies needs to be updated, and tracks the available and latest versions that can be updated to. This module only runs the actual checks and saves the information into fields on the Package DataObject. The fields -are also added to the report that the [SilverStripe Maintenance module](https://github.com/bringyourownideas/silverstripe-maintenance) +are also added to the report that the [Silverstripe Maintenance module](https://github.com/bringyourownideas/silverstripe-maintenance) provides. The bulk of the heavy lifting here is done using the Composer PHP API, which mimics the behaviour of using Composer on @@ -27,8 +21,8 @@ the command line to install or update PHP packages. #### Compatibility -The 1.x release line of this module is compatible with SilverStripe ^3.2, and the 2.x release line is compatible with -SilverStripe ^4.0. +The 1.x release line of this module is compatible with Silverstripe ^3.2, and the 2.x release line is compatible with +Silverstripe ^4.0. The 2.x release line of the module is compatible with composer v1, and this 3.x release line is compatible with composer v2 @@ -58,7 +52,7 @@ updates to private repositories. ## Documentation -Please see the user guide section of the [SilverStripe Maintenance module](https://github.com/bringyourownideas/silverstripe-maintenance/tree/master/docs/en/userguide). +Please see the user guide section of the [Silverstripe Maintenance module](https://github.com/bringyourownideas/silverstripe-maintenance/tree/master/docs/en/userguide). ### Terminology diff --git a/composer.json b/composer.json index 38683e2..e67095c 100644 --- a/composer.json +++ b/composer.json @@ -41,6 +41,9 @@ "phpunit/phpunit": "^9.5", "squizlabs/php_codesniffer": "^3" }, + "conflict": { + "symbiote/silverstripe-queuedjobs": "<4.1.0" + }, "autoload": { "psr-4": { "BringYourOwnIdeas\\UpdateChecker\\": "src/", diff --git a/phpunit.xml.dist b/phpunit.xml.dist index e190cd3..23ee219 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -1,3 +1,4 @@ + tests/