diff --git a/.github/workflows/basic.yml b/.github/workflows/basic.yml index 7428a14d..044fac25 100644 --- a/.github/workflows/basic.yml +++ b/.github/workflows/basic.yml @@ -55,4 +55,22 @@ jobs: uses: actions-rs/cargo@v1 with: command: clippy - args: --all-targets -- -D warnings \ No newline at end of file + args: --all-targets -- -D warnings + + schema: + name: Schema + runs-on: ubuntu-latest + steps: + - name: Checkout sources + uses: actions/checkout@v2 + + - name: Install stable toolchain + uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: 1.66.0 + override: true + components: rustfmt, clippy + + - name: Gen schemas + run: ./scripts/schema.sh \ No newline at end of file diff --git a/stride-covenant/optimize.sh b/scripts/optimize.sh similarity index 100% rename from stride-covenant/optimize.sh rename to scripts/optimize.sh diff --git a/stride-covenant/schema.sh b/scripts/schema.sh similarity index 100% rename from stride-covenant/schema.sh rename to scripts/schema.sh diff --git a/stride-covenant/justfile b/stride-covenant/justfile index e5aaa6b0..d9027eaf 100644 --- a/stride-covenant/justfile +++ b/stride-covenant/justfile @@ -4,7 +4,7 @@ build: gen: build gen-schema gen-schema: - ./schema.sh + ./../scripts/schema.sh test: cargo test @@ -13,7 +13,7 @@ lint: cargo +nightly clippy --all-targets -- -D warnings && cargo +nightly fmt --all --check optimize: - ./optimize.sh + ./../scripts/optimize.sh simtest: optimize if [[ $(uname -m) =~ "arm64" ]]; then \