mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-01 03:07:56 +00:00
24c26e13a5
* ci: Print substrate version Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * ci: Move substrate version to dedicated CI step Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * Revert "ci: Move substrate version to dedicated CI step" This reverts commit b83de672d5bd3c2f09b02a598d63fd88a38fd9ab. * ci: Add version for all steps that download substrate Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
61 lines
1.8 KiB
YAML
61 lines
1.8 KiB
YAML
name: Daily compatibility check against latest substrate
|
|
|
|
on:
|
|
schedule:
|
|
# Run at 8am every day
|
|
- cron: "0 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@v3
|
|
|
|
- name: Download Substrate
|
|
run: |
|
|
curl $SUBSTRATE_URL --output substrate --location
|
|
chmod +x substrate
|
|
./substrate --version
|
|
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@359a70e43a0bb8a13953b04a90f76428b4959bb6 # v2.2.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@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
|