Skip to content

Commit

Permalink
Merge pull request #43 from creative-commoners/pulls/5/module-standar…
Browse files Browse the repository at this point in the history
…diser-1716166510

MNT Run module-standardiser
  • Loading branch information
GuySartorelli authored May 21, 2024
2 parents 154c815 + eb5c2b6 commit 590c2b3
Show file tree
Hide file tree
Showing 8 changed files with 94 additions and 17 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/dispatch-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Dispatch CI

on:
# At 4:20 PM UTC, only on Thursday and Friday
schedule:
- cron: '20 16 * * 4,5'

permissions: {}

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
permissions:
contents: read
actions: write
steps:
- name: Dispatch CI
uses: silverstripe/gha-dispatch-ci@v1
21 changes: 21 additions & 0 deletions .github/workflows/keepalive.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Keepalive

on:
# At 1:05 PM UTC, on day 26 of the month
schedule:
- cron: '5 13 26 * *'
workflow_dispatch:

permissions: {}

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

on:
# At 4:20 PM UTC, only on Monday
schedule:
- cron: '20 16 * * 1'
workflow_dispatch:

permissions: {}

jobs:
merge-up:
name: Merge-up
# Only run cron on the silverstripe account
if: (github.event_name == 'schedule' && github.repository_owner == 'silverstripe') || (github.event_name != 'schedule')
runs-on: ubuntu-latest
permissions:
contents: write
actions: write
steps:
- name: Merge-up
uses: silverstripe/gha-merge-up@v1
23 changes: 23 additions & 0 deletions .github/workflows/update-js.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Update JS

on:
workflow_dispatch:
# Run on a schedule of once per quarter
schedule:
- cron: '40 20 1 */3 *'

permissions: {}

jobs:
update-js:
name: Update JS
# Only run cron on the silverstripe account
if: (github.event_name == 'schedule' && github.repository_owner == 'silverstripe') || (github.event_name != 'schedule')
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
actions: write
steps:
- name: Update JS
uses: silverstripe/gha-update-js@v1
15 changes: 0 additions & 15 deletions CONTRIBUTING.md

This file was deleted.

File renamed without changes.
6 changes: 4 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@
"silverstripe/admin": "^2.0"
},
"require-dev": {
"phpunit/phpunit": "^9.5",
"squizlabs/php_codesniffer": "^3.7"
"phpunit/phpunit": "^9.6",
"squizlabs/php_codesniffer": "^3.7",
"silverstripe/standards": "^1",
"phpstan/extension-installer": "^1.3"
},
"autoload": {
"psr-4": {
Expand Down
3 changes: 3 additions & 0 deletions phpstan.neon.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
parameters:
paths:
- src

0 comments on commit 590c2b3

Please sign in to comment.