From 5ec7a9ab087b0fa92e65f8639ae2d876b0bb93cc Mon Sep 17 00:00:00 2001 From: Mike Date: Tue, 14 Nov 2023 22:07:03 +0100 Subject: [PATCH] Add telegram and schedule --- .github/workflows/unit-tests.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index 23ad374..5af489a 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -1,7 +1,7 @@ name: Unit tests on: - workflow_dispatch + - cron: '0 16 * * 5' jobs: run_tests: @@ -10,4 +10,11 @@ jobs: - uses: actions/checkout@v1 - name: Run tests run: | - xcodebuild test -workspace shared-workspace.xcworkspace -scheme GenericsApp -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 14,OS=17.0.1' -testPlan NoServerTests | xcpretty && exit ${PIPESTATUS[0]} \ No newline at end of file + xcodebuild test -workspace shared-workspace.xcworkspace -scheme GenericsApp -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 14,OS=17.0.1' -testPlan NoServerTests | xcpretty && exit ${PIPESTATUS[0]} + - name: Send message to me + uses: appleboy/telegram-action@master + with: + to: ${{ secrets.TELEGRAM_CHAT_ID }} + token: ${{ secrets.TELEGRAM_TOKEN }} + message: | + Hello world! Unit tests are done. \ No newline at end of file