From 95e73b25dda8ae9dfa8798831218a953de4f041f Mon Sep 17 00:00:00 2001 From: Julien Loizelet Date: Wed, 15 May 2024 15:48:08 +0900 Subject: [PATCH] ci(keep alive): Add keep alive workflow --- .github/workflows/coding-standards.yml | 2 +- .github/workflows/keepalive.yml | 26 +++++++++++++++++++ .../workflows/unit-and-integration-test.yml | 4 ++- 3 files changed, 30 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/keepalive.yml diff --git a/.github/workflows/coding-standards.yml b/.github/workflows/coding-standards.yml index 46134b9..5e5fd3c 100644 --- a/.github/workflows/coding-standards.yml +++ b/.github/workflows/coding-standards.yml @@ -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}} diff --git a/.github/workflows/keepalive.yml b/.github/workflows/keepalive.yml new file mode 100644 index 0000000..3f92278 --- /dev/null +++ b/.github/workflows/keepalive.yml @@ -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" + diff --git a/.github/workflows/unit-and-integration-test.yml b/.github/workflows/unit-and-integration-test.yml index ec86f95..5325374 100644 --- a/.github/workflows/unit-and-integration-test.yml +++ b/.github/workflows/unit-and-integration-test.yml @@ -15,6 +15,8 @@ on: type: boolean description: Run Integration tests default: true + schedule: + - cron: '15 3 * * 4' permissions: contents: read @@ -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}}