forked from paritytech/subxt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add nightly CI check against latest substrate. (paritytech#335)
* Add nightly check and use specific version (currently the same) in PR checks * wrong var name, whoops * Create GH issue if nightly run fails * need tokio feature for RpcClient; match dependency in root Cargo.toml. * Ensure substrate command is properly cleaned up in the event of a panic, to prevent blocking * increase retry limit again * fmt * Tweak text for nightly-run-failed issue template * Run nightly-CI every 5mins for testing * I clearly dont use cron enough * Put back cron timings to 8am daily * break a test * revert nightly workflow again (doesnt run off master) and testing rust workflow * more testing.. * undo testing things; seems to work * tidy up; substrate url at top of both CI files
- Loading branch information
1 parent
a6643a7
commit 43fe55a
Showing
5 changed files
with
104 additions
and
10 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
title: Subxt integration tests failed against latest Substrate build. | ||
--- | ||
|
||
The nightly CI run which downloads the latest version of Substrate ran into test failures, which likely means that there are breaking changes that need fixing in Subxt. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
name: Daily compatibility check against latest substrate | ||
|
||
on: | ||
schedule: | ||
# Run at 8am every day | ||
- cron: "* 8 * * *" | ||
|
||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
# Use latest substrate for nightly runs: | ||
SUBSTRATE_URL: https://releases.parity.io/substrate/x86_64-debian:stretch/latest/substrate/substrate | ||
|
||
jobs: | ||
tests: | ||
name: Cargo test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@v2 | ||
|
||
- name: Download Substrate | ||
run: | | ||
curl $SUBSTRATE_URL --output substrate --location | ||
chmod +x substrate | ||
mkdir -p ~/.local/bin | ||
mv substrate ~/.local/bin | ||
- name: Install Rust stable toolchain | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: stable | ||
override: true | ||
|
||
- name: Rust Cache | ||
uses: Swatinem/rust-cache@v1.3.0 | ||
|
||
- name: Cargo test | ||
uses: actions-rs/cargo@v1.0.3 | ||
with: | ||
command: test | ||
args: --all-targets --workspace | ||
|
||
# If the previous step fails, create a new Github issue | ||
# to nofity us about it. | ||
- if: ${{ failure() }} | ||
uses: JasonEtco/create-an-issue@v2 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
# Use this issue template: | ||
filename: .github/issue_templates/nightly_run_failed.md | ||
# Don't create a new issue; skip updating existing: | ||
update_existing: false | ||
# Look for new *open* issues in this search (we want to | ||
# create a new one if we only find closed versions): | ||
search_existing: open |
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
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
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