mirror of
https://github.com/aljazceru/cdk.git
synced 2025-12-26 00:55:02 +01:00
chore: add ci tests to ci
This commit is contained in:
26
.github/workflows/ci.yml
vendored
26
.github/workflows/ci.yml
vendored
@@ -40,7 +40,31 @@ jobs:
|
||||
cargo fmt --check
|
||||
'
|
||||
- name: typos
|
||||
run: nix develop -i -L .#nightly --command typos
|
||||
run: nix develop -i -L .#nightly --command typos
|
||||
|
||||
examples:
|
||||
name: "Run examples"
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
build-args:
|
||||
[
|
||||
mint-token,
|
||||
p2pk,
|
||||
proof-selection,
|
||||
wallet
|
||||
]
|
||||
steps:
|
||||
- name: checkout
|
||||
uses: actions/checkout@v4
|
||||
- name: Install Nix
|
||||
uses: DeterminateSystems/nix-installer-action@v11
|
||||
- name: Nix Cache
|
||||
uses: DeterminateSystems/magic-nix-cache-action@v6
|
||||
- name: Rust Cache
|
||||
uses: Swatinem/rust-cache@v2
|
||||
- name: Run example
|
||||
run: nix develop -i -L .#stable --command cargo r --example ${{ matrix.build-args }}
|
||||
|
||||
clippy:
|
||||
name: "Stable build, clippy and test"
|
||||
|
||||
Reference in New Issue
Block a user