Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MNT Use GitHub Actions CI #14

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: CI

on:
push:
pull_request:
workflow_dispatch:
# Every day at 3:00pm UTC
schedule:
- cron: '0 15 * * *'

jobs:
ci:
name: CI
# Only run cron on the silverstripe account
if: (github.event_name == 'schedule' && startsWith(github.repository, 'silverstripe/')) || (github.event_name != 'schedule')
uses: silverstripe/gha-ci/.github/workflows/ci.yml@v1
GuySartorelli marked this conversation as resolved.
Show resolved Hide resolved
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:
# The 1st of every month at 3:50pm UTC
schedule:
- cron: '50 15 1 * *'

jobs:
keepalive:
name: Keepalive
# Only run cron on the silverstripe account
if: (github.event_name == 'schedule' && startsWith(github.repository, 'silverstripe/')) || (github.event_name != 'schedule')
runs-on: ubuntu-latest
steps:
- name: Keepalive
uses: silverstripe/gha-keepalive@v1
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Silverstripe CMS kitchen sink recipe

[![Build Status](https://app.travis-ci.com/silverstripe/recipe-kitchen-sink.svg?branch=4)](https://travis-ci.com/silverstripe/recipe-kitchen-sink)
[![CI](https://github.com/silverstripe/recipe-kitchen-sink/actions/workflows/ci.yml/badge.svg)](https://github.com/silverstripe/recipe-kitchen-sink/actions/workflows/ci.yml)

The kitchen sink is an internal recipe used for testing the full Silverstripe CMS feature sets,
including optional and suggested modules.
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"tractorcow/silverstripe-fluent": "4.6.x-dev"
},
"require-dev": {
"silverstripe/frameworktest": "4.x-dev",
"silverstripe/frameworktest": "^0.4.5",
"silverstripe/graphql-devtools": "1.x-dev",
"silverstripe/recipe-testing": "^2",
"mikey179/vfsstream": "^1.6"
Expand Down
16 changes: 3 additions & 13 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -47,25 +47,14 @@
<directory>vendor/tractorcow/silverstripe-fluent/tests</directory>
</testsuite>

<!-- Core CWP recipes -->
<testsuite name="cwp-recipe-core">
<testsuite name="recipe-ccl">
<directory>vendor/cwp/cwp-core/tests</directory>
<directory>vendor/silverstripe/auditor/tests</directory>
<directory>vendor/silverstripe/environmentcheck/tests</directory>
<directory>vendor/silverstripe/hybridsessions/tests</directory>
<directory>vendor/silverstripe/mimevalidator/tests</directory>
</testsuite>

<testsuite name="cwp-recipe-cms">
<directory>vendor/cwp/cwp-core/tests</directory>
<directory>vendor/cwp/cwp/tests</directory>
<directory>vendor/cwp/cwp-pdfexport/tests</directory>
<directory>vendor/silverstripe/html5/tests</directory>
<directory>vendor/symbiote/silverstripe-gridfieldextensions/tests</directory>
</testsuite>

<testsuite name="cwp-recipe-search">
<directory>vendor/cwp/cwp</directory>
<testsuite name="recipe-solr-search">
<directory>vendor/cwp/cwp-search/tests</directory>
<directory>vendor/silverstripe/fulltextsearch/tests</directory>
<directory>vendor/symbiote/silverstripe-queuedjobs/tests</directory>
Expand Down Expand Up @@ -137,5 +126,6 @@
<directory>vendor/silverstripe/login-forms/tests</directory>
<directory>vendor/silverstripe/security-extensions/tests</directory>
</testsuite>

</testsuites>
</phpunit>