mirror of
https://github.com/aljazceru/cdk.git
synced 2025-12-24 16:14:54 +01:00
refactor: check scripts for justfile
chore: ci run examples
This commit is contained in:
31
.github/workflows/ci.yml
vendored
31
.github/workflows/ci.yml
vendored
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user