Skip to content

Commit

Permalink
Merge pull request #192 from creative-commoners/pulls/master/dispatch-ci
Browse files Browse the repository at this point in the history
MNT Use gha-dispatch-ci
  • Loading branch information
Maxime Rainville authored Mar 22, 2023
2 parents 24bd9c6 + 0036052 commit 63a2d85
Show file tree
Hide file tree
Showing 8 changed files with 47 additions and 35 deletions.
1 change: 0 additions & 1 deletion .codecov.yml

This file was deleted.

6 changes: 4 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
name: Module CI
name: CI

on:
push:
pull_request:
workflow_dispatch:

jobs:
ci:
uses: silverstripe/github-actions-ci-cd/.github/workflows/ci.yml@0.1.9
name: CI
uses: silverstripe/gha-ci/.github/workflows/ci.yml@v1
16 changes: 16 additions & 0 deletions .github/workflows/dispatch-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Dispatch CI

on:
# At 4:00 PM UTC, only on Sunday and Monday
schedule:
- cron: '0 16 * * 0,1'

jobs:
dispatch-ci:
name: Dispatch CI
# Only run cron on the silverstripe account
if: (github.event_name == 'schedule' && github.repository_owner == 'silverstripe') || (github.event_name != 'schedule')
runs-on: ubuntu-latest
steps:
- name: Dispatch CI
uses: silverstripe/gha-dispatch-ci@v1
17 changes: 17 additions & 0 deletions .github/workflows/keepalive.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Keepalive

on:
workflow_dispatch:
# At 4:50 PM UTC, on day 8 of the month
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
15 changes: 0 additions & 15 deletions .scrutinizer.yml

This file was deleted.

4 changes: 0 additions & 4 deletions .travis.yml

This file was deleted.

22 changes: 9 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
# SilverStripe Maintenance
# Silverstripe Maintenance

[![Build Status](https://api.travis-ci.org/bringyourownideas/silverstripe-maintenance.svg?branch=master)](https://travis-ci.org/bringyourownideas/silverstripe-maintenance)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/bringyourownideas/silverstripe-maintenance/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/bringyourownideas/silverstripe-maintenance/?branch=master)
[![codecov](https://codecov.io/gh/bringyourownideas/silverstripe-maintenance/branch/master/graph/badge.svg)](https://codecov.io/gh/bringyourownideas/silverstripe-maintenance)
[![SilverStripe supported module](https://img.shields.io/badge/silverstripe-supported-0071C4.svg)](https://www.silverstripe.org/software/addons/silverstripe-commercially-supported-module-list/)
[![CI](https://github.com/bringyourownideas/silverstripe-maintenance/actions/workflows/ci.yml/badge.svg)](https://github.com/bringyourownideas/silverstripe-maintenance/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/)

## Overview

The [SilverStripe Maintenance module](https://github.com/bringyourownideas/silverstripe-maintenance "Assists with the
maintenance of your SilverStripe application") reduces your maintenance related work.
The [Silverstripe Maintenance module](https://github.com/bringyourownideas/silverstripe-maintenance "Assists with the
maintenance of your Silverstripe application") reduces your maintenance related work.

![UI Preview](docs/en/_img/ui-with-sec-alert.png)

Expand All @@ -18,9 +16,9 @@ maintenance of your SilverStripe application") reduces your maintenance related
* The [queuedjobs module](https://github.com/symbiote/silverstripe-queuedjobs) updates metadata on your installed modules in the background. You need to [configure](https://github.com/symbiote/silverstripe-queuedjobs) it to run those jobs.
* For the optional update checkers, the webserver environment needs to be able to contact external information sources through network requests
* SilverStripe:
* Maintenance ^2.2: SilverStripe ^4.4
* Maintenance ~2.1.0: SilverStripe 4.0-4.3
* Maintenance: ^1.0: SilverStripe 3.x
* Maintenance ^2.2: Silverstripe ^4.4
* Maintenance ~2.1.0: Silverstripe 4.0-4.3
* Maintenance: ^1.0: Silverstripe 3.x

### Suggested Modules

Expand All @@ -34,7 +32,6 @@ we recommend the installation of the following additional module:

The previously recommended silverstripe-composer-security-checker module [can't work anymore](https://github.com/bringyourownideas/silverstripe-composer-security-checker/issues/57) and isn't recommended to be used anymore.


### Installation

Option 1 (recommended): Install the maintenance package and suggested dependency
Expand Down Expand Up @@ -73,7 +70,6 @@ Run the update task (includes the [update-checker](https://github.com/bringyouro
sake dev/tasks/UpdatePackageInfoTask
```


## How your composer.json influences the report

The report available through the CMS shows "Available" and "Latest" versions (see [user guide](docs/en/userguide/index.md)).
Expand All @@ -90,7 +86,7 @@ Please see the [user guide](docs/en/userguide/index.md) section.
## Contributing

Contributions are welcome! Create an issue, explaining a bug or propose development ideas. Find more information on
[contributing](https://docs.silverstripe.org/en/contributing/) in the SilverStripe developer documentation.
[contributing](https://docs.silverstripe.org/en/contributing/) in the Silverstripe developer documentation.

## Reporting Issues

Expand Down
1 change: 1 addition & 0 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit bootstrap="vendor/silverstripe/framework/tests/bootstrap.php" colors="true">
<testsuite name="Default">
<directory>tests/</directory>
Expand Down

0 comments on commit 63a2d85

Please sign in to comment.