Skip to content

Commit

Permalink
ci(keep alive): Add keep alive workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
julienloizelet committed May 15, 2024
1 parent d47b3ac commit 95e73b2
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/coding-standards.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:
ddev exec php -v
- name: Clone sources
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: ${{env.EXTENSION_PATH}}

Expand Down
26 changes: 26 additions & 0 deletions .github/workflows/keepalive.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Keep Alive
on:

schedule:
- cron: '0 3 * * 4'

permissions:
actions: write

jobs:
keep-alive:

name: Keep Alive
runs-on: ubuntu-latest

steps:

- name: Clone project files
uses: actions/checkout@v4

# keepalive-workflow keeps GitHub from turning off tests after 60 days
- uses: gautamkrishnar/keepalive-workflow@v2
with:
time_elapsed: 45
workflow_files: "unit-and-integration-test.yml"

4 changes: 3 additions & 1 deletion .github/workflows/unit-and-integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ on:
type: boolean
description: Run Integration tests
default: true
schedule:
- cron: '15 3 * * 4'

permissions:
contents: read
Expand Down Expand Up @@ -63,7 +65,7 @@ jobs:
ddev exec php -v
- name: Clone sources
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: ${{env.EXTENSION_PATH}}

Expand Down

0 comments on commit 95e73b2

Please sign in to comment.