refactor: check scripts for justfile

chore: ci run examples
This commit is contained in:
thesimplekid
2024-08-19 01:02:45 +02:00
parent 9eff00bcaf
commit 65163b89bc
15 changed files with 93 additions and 171 deletions

View File

@@ -39,7 +39,6 @@ jobs:
-p cdk-integration-tests,
--bin cdk-cli,
--bin cdk-mintd,
--examples
]
steps:
- name: Checkout
@@ -96,3 +95,33 @@ jobs:
run: cargo build ${{ matrix.build-args }} --target wasm32-unknown-unknown
- name: Clippy
run: cargo clippy ${{ matrix.build-args }} --target wasm32-unknown-unknown -- -D warnings
run-examples:
name: Run Examples
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- version: stable
build-args:
[
mint-token,
p2pk,
proof-selection,
wallet
]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Cache
uses: actions/cache@v3
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-wasm32-${{ hashFiles('**/Cargo.toml','**/Cargo.lock') }}
- name: Set default toolchain
run: rustup default ${{ matrix.rust.version }}
- name: Run
run: cargo run --example ${{ matrix.build-args }}