frost-zcash-demo/.github/workflows/main.yml

69 lines
1.4 KiB
YAML

name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test_ed25519:
name: Test with ed25519
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.1.4
- uses: dtolnay/rust-toolchain@stable
- run: cargo test
test_redpallas:
name: Test with redpallas
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.1.4
- uses: dtolnay/rust-toolchain@stable
- run: cargo test --features redpallas
clippy:
name: Clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.1.4
with:
persist-credentials: false
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- name: Run clippy manually without annotations
run: cargo clippy --all-targets -- -D warnings
fmt:
name: Rustfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.1.4
with:
persist-credentials: false
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
- uses: Swatinem/rust-cache@v2
- name: Run rustfmt
run: cargo fmt --all -- --check
actionlint:
runs-on: ubuntu-latest
continue-on-error: true
steps:
- uses: actions/checkout@v4.1.4
- uses: reviewdog/action-actionlint@v1.44.0
with:
level: warning
fail_on_error: false