Skip to content

Commit

Permalink
MNT Run module-standardiser
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli committed Jan 31, 2024
1 parent 599479d commit 20849c0
Show file tree
Hide file tree
Showing 6 changed files with 43 additions and 5 deletions.
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 8:40 PM UTC, only on Saturday and Sunday
schedule:
- cron: '40 20 * * 6,0'

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

on:
# At 12:05 AM UTC, on day 20 of the month
# At 8:40 PM UTC, on day 21 of the month
schedule:
- cron: '5 0 20 * *'
- cron: '40 20 21 * *'
workflow_dispatch:

jobs:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/merge-up.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Merge-up

on:
# At 12:05 AM UTC, only on Tuesday
# At 8:40 PM UTC, only on Wednesday
schedule:
- cron: '5 0 * * 2'
- cron: '40 20 * * 3'
workflow_dispatch:

jobs:
Expand Down
17 changes: 17 additions & 0 deletions .github/workflows/update-js.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Update JS

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

jobs:
update-js:
name: Update JS
# Only run cron on the tractorcow-farm account
if: (github.event_name == 'schedule' && github.repository_owner == 'tractorcow-farm') || (github.event_name != 'schedule')
runs-on: ubuntu-latest
steps:
- name: Update JS
uses: silverstripe/gha-update-js@v1
4 changes: 3 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@
"silverstripe/cms": "Localise pages"
},
"require-dev": {
"silverstripe/recipe-testing": "^3"
"silverstripe/recipe-testing": "^3",
"silverstripe/standards": "^1",
"phpstan/extension-installer": "^1.3"
},
"extra": {
"branch-alias": {
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 20849c0

Please sign in to comment.