Add telegram and schedule #7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Unit tests | |
on: | |
- cron: '0 16 * * 5' | |
jobs: | |
run_tests: | |
runs-on: macos-13 | |
steps: | |
- 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]} | |
- 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. |