[test only] Webdev stable tests #1
Workflow file for this run
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
# A CI workflow to run tests on a daily cron job. | |
name: Daily Testing | |
on: | |
push: | |
branches: | |
- main | |
- master | |
pull_request: | |
schedule: | |
- cron: "00 14 * * *" # Everyday at 3:00 PM UTC (8:00 AM PST) | |
jobs: | |
testing_stable: | |
name: Testing Dart Stable SDK | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup Dart SDK | |
uses: dart-lang/setup-dart@8a4b97ea2017cc079571daec46542f76189836b1 | |
with: | |
sdk: stable | |
- id: checkout | |
name: Checkout repository | |
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac | |
- id: webdev_pub_upgrade | |
name: webdev; dart pub upgrade | |
run: dart pub upgrade | |
if: "always() && steps.checkout.conclusion == 'success'" | |
working-directory: webdev | |
- name: webdev; dart analyze . | |
run: dart analyze . | |
if: "always() && steps.webdev_pub_upgrade.conclusion == 'success'" | |
working-directory: webdev | |
- id: webdev_stable_tests | |
name: "webdev; dart test --tags=stable" | |
run: "dart test --tags=stable" | |
if: "always() && steps.webdev_pub_upgrade.conclusion == 'success'" | |
working-directory: webdev | |
- name: "Notify failure" | |
if: "always() && steps.webdev_stable_tests.conclusion == 'failure'" | |
run: | | |
curl -H "Content-Type: application/json" -X POST -d \ | |
"{'text':'Webdev tests failed (stable)! ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}'}" \ | |
"${{ secrets.WEBDEV_NOTIFICATION_CHAT_WEBHOOK }}" |