diff options
author | 2020-12-02 01:07:27 +0000 | |
---|---|---|
committer | 2020-12-02 01:07:27 +0000 | |
commit | 187cdcfa005aac8e681c549aaed2797b228142a6 (patch) | |
tree | 3719c7b6585ea1ed87eaf7f64aafad985dd71628 | |
parent | 5910cbeac5882670e6a1fd906e21ebcbcced2f83 (diff) | |
parent | cf4982642780e5b7aa6c20889a32bc1f8214eafb (diff) | |
download | cortex-m-187cdcfa005aac8e681c549aaed2797b228142a6.tar.gz cortex-m-187cdcfa005aac8e681c549aaed2797b228142a6.tar.zst cortex-m-187cdcfa005aac8e681c549aaed2797b228142a6.zip |
Merge #298
298: Try scheduling CI runs r=thalesfragoso a=adamgreig
This is a first go at running CI jobs on a scheduled basis. This job will run at 7pm UTC today (Wednesday), run our tests, and, in this case, fail. On failure it should then open a new issue on the repository with a link to the failed CI job.
We can bikeshed the schedule (this is just to get it to run soonish), and obviously I'll do another PR to remove the failing step once we've checked it works.
Please don't merge if we miss 7pm weds; I'll update the schedule first.
Co-authored-by: Adam Greig <adam@adamgreig.com>
-rw-r--r-- | .github/workflows/cron.yml | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/.github/workflows/cron.yml b/.github/workflows/cron.yml new file mode 100644 index 0000000..eb373cd --- /dev/null +++ b/.github/workflows/cron.yml @@ -0,0 +1,31 @@ +on: + schedule: + # Run every week at 7pm UTC Wednesday. + - cron: '0 19 * * WED' + +name: Cron CI + +jobs: + ci-linux: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: stable + override: true + - name: Run tests + run: cargo test --all + - name: Deliberate failure to test issue opening + run: false + - uses: imjohnbo/issue-bot@v2 + if: failure() + with: + title: CI Failure + body: | + Scheduled CI run failed. Details: + + https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }} + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |