Skip to content

Commit

Permalink
MNT Use GitHub Actions CI
Browse files Browse the repository at this point in the history
  • Loading branch information
emteknetnz committed Jul 14, 2022
1 parent 0527e8a commit 3efd76f
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 2 deletions.
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 Sunday at 12:20pm UTC
schedule:
- cron: '20 12 * * 0'

jobs:
ci:
name: CI
# Only run cron on the symbiote account
if: (github.event_name == 'schedule' && startsWith(github.repository, 'symbiote/')) || (github.event_name != 'schedule')
uses: silverstripe/gha-ci/.github/workflows/ci.yml@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:
# The 18th of every month at 12:50pm UTC
schedule:
- cron: '50 12 18 * *'

jobs:
keepalive:
name: Keepalive
# Only run cron on the symbiote account
if: (github.event_name == 'schedule' && startsWith(github.repository, 'symbiote/')) || (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 MultiValueField module

[![Build Status](https://travis-ci.org/symbiote/silverstripe-multivaluefield.svg?branch=master)](https://travis-ci.org/symbiote/silverstripe-multivaluefield)
[![CI](https://github.com/symbiote/silverstripe-multivaluefield/actions/workflows/ci.yml/badge.svg)](https://github.com/symbiote/silverstripe-multivaluefield/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/)

Notes:
Expand Down
2 changes: 1 addition & 1 deletion tests/MultiValueFieldTest_DataObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
*/
class MultiValueFieldTest_DataObject extends \SilverStripe\ORM\DataObject implements \SilverStripe\Dev\TestOnly
{
private static $table_name = 'MultiValueFieldTest_DataObject';

private static $db = array(
'MVField' => 'MultiValueField'
);


public function write($showDebug = false, $forceInsert = false, $forceWrite = false, $writeComponents = false)
{
parent::write($showDebug, $forceInsert, $forceWrite, $writeComponents);
Expand Down

0 comments on commit 3efd76f

Please sign in to comment.