Skip to content

Commit

Permalink
Add telegram and schedule
Browse files Browse the repository at this point in the history
  • Loading branch information
roya1v committed Nov 14, 2023
1 parent 505ce64 commit 5ec7a9a
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Unit tests

on:
workflow_dispatch
- cron: '0 16 * * 5'

jobs:
run_tests:
Expand All @@ -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]}
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.

0 comments on commit 5ec7a9a

Please sign in to comment.