Implement ZKP using BBS+ and JsonLD #24
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 'Rust Checks: rustfml, clippy & test' | |
'on': | |
pull_request: null | |
workflow_dispatch: null | |
push: | |
branches: | |
- main | |
jobs: | |
rustfmt: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Install Rust | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
components: rustfmt | |
- name: Run rustfmt | |
run: cargo fmt --all -- --check | |
clippy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Install Rust | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
components: clippy | |
- name: Run clippy | |
run: cargo clippy --workspace --all-targets --all-features -- -D warnings | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Install Rust | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: nightly | |
components: cargo | |
- name: Run tests | |
run: | | |
cargo +nightly test --workspace --all-targets --all-features -- -Z unstable-options --format json --report-time | tee results.json | |
- name: Prepare junit report | |
id: cargo_reporter | |
uses: innoq/action-cargo-test-report@v1 | |
with: | |
cargo-test-report-json: results.json | |
- name: Publish Test Report | |
uses: mikepenz/[email protected] | |
if: always() | |
with: | |
check_name: Test Report | |
fail_on_failure: true | |
require_tests: true | |
summary: '${{ steps.cargo_reporter.outputs.summary }}' |