Daily compatibility check against latest substrate #752
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: Daily compatibility check against latest substrate | |
on: | |
schedule: | |
# Run at 8am every day, well after the new binary is built | |
- cron: "0 8 * * *" | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
tests: | |
name: Cargo test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v4 | |
- name: Use substrate-node binary | |
uses: ./.github/workflows/actions/use-substrate | |
- name: Install Rust stable toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
override: true | |
- name: Rust Cache | |
uses: Swatinem/rust-cache@3cf7f8cc28d1b4e7d01e3783be10a97d55d483c8 # v2.7.1 | |
- name: Cargo test | |
uses: actions-rs/[email protected] | |
with: | |
command: test | |
args: --all-targets --workspace | |
# If any previous step fails, create a new Github issue to notify us about it. | |
- if: ${{ failure() }} | |
uses: JasonEtco/create-an-issue@e27dddc79c92bc6e4562f268fffa5ed752639abd # v2.9.1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
# Use this issue template: | |
filename: .github/issue_templates/nightly_run_failed.md | |
# Update existing issue if found; hopefully will make it clearer | |
# that it is still an issue: | |
update_existing: true | |
# Look for new *open* issues in this search (we want to | |
# create a new one if we only find closed versions): | |
search_existing: open |