mirror of https://github.com/vacp2p/zerokit.git
fix(CI): add ci test for all features (#270)
This commit is contained in:
parent
6621efd0bb
commit
49e2517e15
|
@ -21,11 +21,11 @@ on:
|
||||||
name: Tests
|
name: Tests
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
utils-test:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
platform: [ubuntu-latest, macos-latest]
|
platform: [ ubuntu-latest, macos-latest ]
|
||||||
crate: [rln, utils]
|
crate: [ utils ]
|
||||||
runs-on: ${{ matrix.platform }}
|
runs-on: ${{ matrix.platform }}
|
||||||
timeout-minutes: 60
|
timeout-minutes: 60
|
||||||
|
|
||||||
|
@ -47,10 +47,37 @@ jobs:
|
||||||
cargo make test --release
|
cargo make test --release
|
||||||
working-directory: ${{ matrix.crate }}
|
working-directory: ${{ matrix.crate }}
|
||||||
|
|
||||||
|
rln-test:
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
platform: [ ubuntu-latest, macos-latest ]
|
||||||
|
crate: [ rln ]
|
||||||
|
feature: [ "default", "arkzkey", "stateless" ]
|
||||||
|
runs-on: ${{ matrix.platform }}
|
||||||
|
timeout-minutes: 60
|
||||||
|
|
||||||
|
name: test - ${{ matrix.crate }} - ${{ matrix.platform }} - ${{ matrix.feature }}
|
||||||
|
steps:
|
||||||
|
- name: Checkout sources
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
- name: Install stable toolchain
|
||||||
|
uses: actions-rs/toolchain@v1
|
||||||
|
with:
|
||||||
|
profile: minimal
|
||||||
|
toolchain: stable
|
||||||
|
override: true
|
||||||
|
- uses: Swatinem/rust-cache@v2
|
||||||
|
- name: Install dependencies
|
||||||
|
run: make installdeps
|
||||||
|
- name: cargo-make test
|
||||||
|
run: |
|
||||||
|
cargo make test_${{ matrix.feature }} --release
|
||||||
|
working-directory: ${{ matrix.crate }}
|
||||||
|
|
||||||
rln-wasm:
|
rln-wasm:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
platform: [ubuntu-latest, macos-latest]
|
platform: [ ubuntu-latest, macos-latest ]
|
||||||
runs-on: ${{ matrix.platform }}
|
runs-on: ${{ matrix.platform }}
|
||||||
timeout-minutes: 60
|
timeout-minutes: 60
|
||||||
|
|
||||||
|
@ -77,8 +104,8 @@ jobs:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
# we run lint tests only on ubuntu
|
# we run lint tests only on ubuntu
|
||||||
platform: [ubuntu-latest]
|
platform: [ ubuntu-latest ]
|
||||||
crate: [rln, utils]
|
crate: [ rln, utils ]
|
||||||
runs-on: ${{ matrix.platform }}
|
runs-on: ${{ matrix.platform }}
|
||||||
timeout-minutes: 60
|
timeout-minutes: 60
|
||||||
|
|
||||||
|
@ -114,8 +141,8 @@ jobs:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
# we run benchmark tests only on ubuntu
|
# we run benchmark tests only on ubuntu
|
||||||
platform: [ubuntu-latest]
|
platform: [ ubuntu-latest ]
|
||||||
crate: [rln, utils]
|
crate: [ rln, utils ]
|
||||||
runs-on: ${{ matrix.platform }}
|
runs-on: ${{ matrix.platform }}
|
||||||
timeout-minutes: 60
|
timeout-minutes: 60
|
||||||
|
|
||||||
|
|
|
@ -2,10 +2,18 @@
|
||||||
command = "cargo"
|
command = "cargo"
|
||||||
args = ["build", "--release"]
|
args = ["build", "--release"]
|
||||||
|
|
||||||
[tasks.test]
|
[tasks.test_default]
|
||||||
command = "cargo"
|
command = "cargo"
|
||||||
args = ["test", "--release"]
|
args = ["test", "--release"]
|
||||||
|
|
||||||
|
[tasks.test_stateless]
|
||||||
|
command = "cargo"
|
||||||
|
args = ["test", "--release", "--features", "stateless"]
|
||||||
|
|
||||||
|
[tasks.test_arkzkey]
|
||||||
|
command = "cargo"
|
||||||
|
args = ["test", "--release", "--features", "arkzkey"]
|
||||||
|
|
||||||
[tasks.bench]
|
[tasks.bench]
|
||||||
command = "cargo"
|
command = "cargo"
|
||||||
args = ["bench"]
|
args = ["bench"]
|
||||||
|
|
Loading…
Reference in New Issue