-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
186 additions
and
215 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
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 |
---|---|---|
@@ -1,33 +1,38 @@ | ||
name: try-runtime Workflow | ||
|
||
on: [pull_request] | ||
on: push | ||
|
||
jobs: | ||
build: | ||
test-try-runtime: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
runtime: [ peregrine, spiritnet ] | ||
uri: [ 'wss://peregrine.kilt.io:443', 'wss://peregrine.kilt.io:443' ] | ||
runs-on: [ self-hosted ] | ||
services: | ||
docker: | ||
image: docker:20.10.8-dind | ||
privileged: true | ||
runtime: | ||
- peregrine | ||
- spiritnet | ||
uri: | ||
- 'wss://peregrine.kilt.io:443' | ||
- 'wss://spiritnet.kilt.io:443' | ||
container: | ||
image: paritytech/ci-unified:bullseye-1.77.0 | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v4 | ||
|
||
- name: Build | ||
run: cargo build --release -p ${{ matrix.runtime }}-runtime --features try-runtime --locked | ||
- name: script | ||
run: | | ||
echo "Running ${{ matrix.runtime }} runtime migration check" | ||
- name: Run tests | ||
uses: NodleCode/[email protected] | ||
with: | ||
url: ${matrix.uri} | ||
snap: snapshots/eden-snapshot-full | ||
runtime: target/release/wbuild/${metrix.runtime}-runtime/peregrine_runtime.compact.compressed.wasm | ||
checks: "all" | ||
options: "----disable-spec-version-check" | ||
echo "---------- Downloading try-runtime CLI ----------" | ||
curl -sL https://github.com/paritytech/try-runtime-cli/releases/download/v0.7.0/try-runtime-x86_64-unknown-linux-musl -o try-runtime | ||
chmod +x ./try-runtime | ||
echo "Using try-runtime-cli version:" | ||
./try-runtime --version | ||
echo "---------- Building ${{ matrix.runtime }} runtime ----------" | ||
cargo build --release --locked -p ${{ matrix.runtime }}-runtime --features try-runtime | ||
echo "---------- Executing on-runtime-upgrade for ${{ matrix.uri }} ----------" | ||
./try-runtime --runtime ./target/release/wbuild/${{ matrix.runtime }}-runtime/${{ matrix.runtime }}_runtime.compact.compressed.wasm \ | ||
on-runtime-upgrade --disable-spec-version-check --checks=all ${{ matrix.subcommand_extra_args }} live --uri ${{ matrix.uri }} |
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 |
---|---|---|
@@ -1,27 +1,19 @@ | ||
default: | ||
interruptible: true | ||
include: | ||
- local: '.gitlab/check-skip.yml' | ||
- local: '.gitlab/check.yml' | ||
- local: '.gitlab/test.yml' | ||
- local: '.gitlab/build.yml' | ||
- local: '.gitlab/release.yml' | ||
|
||
variables: | ||
CARGO_HOME: $CI_PROJECT_DIR/.cargo | ||
CARGO_TARGET_DIR: $CI_PROJECT_DIR/target | ||
default: | ||
cache: | ||
key: ${CI_COMMIT_REF_SLUG}-rust | ||
paths: | ||
- target | ||
- .cargo/bin/ | ||
- .cargo/registry/index/ | ||
- .cargo/registry/cache/ | ||
- .cargo/git/db/ | ||
|
||
workflow: | ||
auto_cancel: | ||
on_new_commit: interruptible | ||
|
||
stages: | ||
- check | ||
- test | ||
- build | ||
- release |
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 was deleted.
Oops, something went wrong.
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,34 @@ | ||
.check_skip_rust: | ||
before_script: | ||
- |- | ||
if echo "$CI_COMMIT_TITLE" | grep -q "ci-skip-rust"; then | ||
echo "Skipping rust tests due to commit title" | ||
exit 0 | ||
fi | ||
.check_skip_integration_tests: | ||
before_script: | ||
- |- | ||
if echo "$CI_COMMIT_TITLE" | grep -q "ci-skip-integration-tests"; then | ||
echo "Skipping integration tests due to commit title" | ||
exit 0 | ||
fi | ||
cargo-clippy: | ||
extends: .check_skip_rust | ||
image: paritytech/ci-unified:bullseye-1.77.0 | ||
stage: check | ||
variables: | ||
RUSTFLAGS: "-D warnings" | ||
script: | ||
- cargo clippy --all-targets --locked --workspace --quiet | ||
- cargo clippy --all-targets --all-features --locked --workspace --quiet | ||
|
||
check-toml-format: | ||
extends: .check_skip_rust | ||
image: paritytech/ci-unified:bullseye-1.77.0 | ||
stage: check | ||
cache: {} | ||
script: | ||
- cargo fmt -- --check | ||
- taplo fmt --check |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.