Skip to content

Commit eb5c2b6

Browse files
committed
MNT Run module-standardiser
1 parent 154c815 commit eb5c2b6

File tree

8 files changed

+94
-17
lines changed

8 files changed

+94
-17
lines changed

.github/workflows/dispatch-ci.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Dispatch CI
2+
3+
on:
4+
# At 4:20 PM UTC, only on Thursday and Friday
5+
schedule:
6+
- cron: '20 16 * * 4,5'
7+
8+
permissions: {}
9+
10+
jobs:
11+
dispatch-ci:
12+
name: Dispatch CI
13+
# Only run cron on the silverstripe account
14+
if: (github.event_name == 'schedule' && github.repository_owner == 'silverstripe') || (github.event_name != 'schedule')
15+
runs-on: ubuntu-latest
16+
permissions:
17+
contents: read
18+
actions: write
19+
steps:
20+
- name: Dispatch CI
21+
uses: silverstripe/gha-dispatch-ci@v1

.github/workflows/keepalive.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Keepalive
2+
3+
on:
4+
# At 1:05 PM UTC, on day 26 of the month
5+
schedule:
6+
- cron: '5 13 26 * *'
7+
workflow_dispatch:
8+
9+
permissions: {}
10+
11+
jobs:
12+
keepalive:
13+
name: Keepalive
14+
# Only run cron on the silverstripe account
15+
if: (github.event_name == 'schedule' && github.repository_owner == 'silverstripe') || (github.event_name != 'schedule')
16+
runs-on: ubuntu-latest
17+
permissions:
18+
actions: write
19+
steps:
20+
- name: Keepalive
21+
uses: silverstripe/gha-keepalive@v1

.github/workflows/merge-up.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Merge-up
2+
3+
on:
4+
# At 4:20 PM UTC, only on Monday
5+
schedule:
6+
- cron: '20 16 * * 1'
7+
workflow_dispatch:
8+
9+
permissions: {}
10+
11+
jobs:
12+
merge-up:
13+
name: Merge-up
14+
# Only run cron on the silverstripe account
15+
if: (github.event_name == 'schedule' && github.repository_owner == 'silverstripe') || (github.event_name != 'schedule')
16+
runs-on: ubuntu-latest
17+
permissions:
18+
contents: write
19+
actions: write
20+
steps:
21+
- name: Merge-up
22+
uses: silverstripe/gha-merge-up@v1

.github/workflows/update-js.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Update JS
2+
3+
on:
4+
workflow_dispatch:
5+
# Run on a schedule of once per quarter
6+
schedule:
7+
- cron: '40 20 1 */3 *'
8+
9+
permissions: {}
10+
11+
jobs:
12+
update-js:
13+
name: Update JS
14+
# Only run cron on the silverstripe account
15+
if: (github.event_name == 'schedule' && github.repository_owner == 'silverstripe') || (github.event_name != 'schedule')
16+
runs-on: ubuntu-latest
17+
permissions:
18+
contents: write
19+
pull-requests: write
20+
actions: write
21+
steps:
22+
- name: Update JS
23+
uses: silverstripe/gha-update-js@v1

CONTRIBUTING.md

Lines changed: 0 additions & 15 deletions
This file was deleted.

LICENSE.md renamed to LICENSE

File renamed without changes.

composer.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,10 @@
1212
"silverstripe/admin": "^2.0"
1313
},
1414
"require-dev": {
15-
"phpunit/phpunit": "^9.5",
16-
"squizlabs/php_codesniffer": "^3.7"
15+
"phpunit/phpunit": "^9.6",
16+
"squizlabs/php_codesniffer": "^3.7",
17+
"silverstripe/standards": "^1",
18+
"phpstan/extension-installer": "^1.3"
1719
},
1820
"autoload": {
1921
"psr-4": {

phpstan.neon.dist

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
parameters:
2+
paths:
3+
- src

0 commit comments

Comments
 (0)