Skip to content

Commit

Permalink
Keepalive workflow (#46)
Browse files Browse the repository at this point in the history
* Keepalive added to stale.yml

* keepalive.yml added
scheduled test added
  • Loading branch information
novalisdenahi authored Nov 15, 2024
1 parent ff93437 commit 3cb07f3
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 1 deletion.
19 changes: 19 additions & 0 deletions .github/workflows/keepalive.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Keepalive Workflow

on:
schedule:
- cron: "0 0 * * *"

permissions:
actions: write

jobs:
cronjob-based-github-action:
name: Keepalive Workflow
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: gautamkrishnar/keepalive-workflow@v2
with:
workflow_files: "stale.yml, scheduled-test.yml"
time_elapsed: "0"
34 changes: 34 additions & 0 deletions .github/workflows/scheduled-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Kotlin SDK Scheduled Test

on:
schedule:
- cron: '0 0 * * *'

workflow_dispatch:

jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ macos-latest, ubuntu-latest, windows-latest ]
steps:
- uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: 17
distribution: zulu
- name: Cache Konan
uses: ./.github/actions/cache-konan
- name: Cache Gradle
uses: ./.github/actions/cache-gradle
- name: Run all tests
run: ./gradlew allTests --stacktrace
shell: bash
- name: Archive results
if: failure()
uses: actions/upload-artifact@v4
with:
name: test-results
path: build/reports/tests
2 changes: 1 addition & 1 deletion .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ on:
jobs:
stale:
uses: configcat/.github/.github/workflows/stale.yml@master
secrets: inherit
secrets: inherit

0 comments on commit 3cb07f3

Please sign in to comment.