[QN] Fix validator verification #3052
Workflow file for this run
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: joystream-node | |
on: | |
pull_request: | |
push: | |
jobs: | |
# test runtime benchmarks code correctness | |
benchmarking: | |
name: Benchmarking | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: '18.x' | |
- uses: technote-space/get-diff-action@v3 | |
with: | |
PREFIX_FILTER: | | |
bin | |
runtime | |
runtime-modules | |
SUFFIX_FILTER: | | |
.rs | |
FILES: | | |
Cargo.lock | |
Cargo.toml | |
# TODO: Look for change in source code but no corresponding version bump of runtime or binaries | |
# - name: Check version modified correctly | |
# if: env.GIT_DIFF | |
- name: Toolchains | |
run: | | |
./setup.sh | |
if: env.GIT_DIFF | |
- name: Build | |
env: | |
WASM_BUILD_TOOLCHAIN: nightly-2022-05-11 | |
run: | | |
cargo +nightly-2022-05-11 clippy --release --features runtime-benchmarks && | |
cargo +nightly-2022-05-11 test --release --features runtime-benchmarks && | |
cargo +nightly-2022-05-11 build --release --features runtime-benchmarks | |
if: env.GIT_DIFF | |
- name: Test Generate Weights | |
run: | | |
./scripts/generate-weights.sh 1 1 && git diff | |
if: env.GIT_DIFF | |
# Build and test joystream-node with all runtime profiles | |
runtime_profiles: | |
name: Runtime Profiles | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: '18.x' | |
- uses: technote-space/get-diff-action@v3 | |
with: | |
PREFIX_FILTER: | | |
bin | |
runtime | |
runtime-modules | |
SUFFIX_FILTER: | | |
.rs | |
FILES: | | |
Cargo.lock | |
Cargo.toml | |
- name: Toolchains | |
run: | | |
./setup.sh | |
if: env.GIT_DIFF | |
- name: Production Runtime | |
run: | | |
yarn cargo-checks && yarn cargo-build | |
./target/release/call-sizes | |
if: env.GIT_DIFF | |
- name: Staging Runtime | |
env: | |
RUNTIME_PROFILE: "STAGING" | |
run: | | |
yarn cargo-checks && yarn cargo-build | |
if: env.GIT_DIFF | |
- name: Playground Runtime | |
env: | |
RUNTIME_PROFILE: "PLAYGROUND" | |
run: | | |
yarn cargo-checks && yarn cargo-build | |
if: env.GIT_DIFF | |
- name: Testing Runtime | |
env: | |
RUNTIME_PROFILE: "TESTING" | |
run: | | |
yarn cargo-checks && yarn cargo-build | |
if: env.GIT_DIFF |