2022-03-16 05:21:31 +00:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
2022-11-15 11:05:29 +00:00
|
|
|
paths-ignore:
|
|
|
|
- '**.md'
|
|
|
|
- '!.github/workflows/*.yml'
|
|
|
|
- '!multiplier/src/**'
|
|
|
|
- '!private-settlement/src/**'
|
|
|
|
- '!rln/src/**'
|
|
|
|
- '!rln-wasm/**'
|
|
|
|
- '!semaphore/src/**'
|
2022-03-16 05:21:31 +00:00
|
|
|
pull_request:
|
2022-11-15 11:05:29 +00:00
|
|
|
paths-ignore:
|
|
|
|
- '**.md'
|
|
|
|
- '!.github/workflows/*.yml'
|
|
|
|
- '!multiplier/src/**'
|
|
|
|
- '!private-settlement/src/**'
|
|
|
|
- '!rln/src/**'
|
|
|
|
- '!rln-wasm/**'
|
|
|
|
- '!semaphore/src/**'
|
|
|
|
|
2022-03-16 05:21:31 +00:00
|
|
|
|
|
|
|
name: Tests
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
tests:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout sources
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Install stable toolchain
|
|
|
|
uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
|
|
|
profile: minimal
|
|
|
|
toolchain: stable
|
|
|
|
override: true
|
2022-06-01 14:40:10 +00:00
|
|
|
- name: Update git submodules
|
|
|
|
run: git submodule update --init --recursive
|
2022-03-16 05:21:31 +00:00
|
|
|
- name: cargo test
|
|
|
|
run: |
|
2022-09-20 12:22:46 +00:00
|
|
|
cargo test --release --workspace --exclude rln-wasm
|
2022-09-27 15:09:48 +00:00
|
|
|
wasm:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Install stable toolchain
|
|
|
|
uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
|
|
|
profile: minimal
|
|
|
|
toolchain: stable
|
|
|
|
override: true
|
|
|
|
- run: git submodule update --init --recursive
|
|
|
|
- name: Install wasm-pack
|
|
|
|
uses: jetli/wasm-pack-action@v0.3.0
|
|
|
|
- run: cargo install cargo-make
|
|
|
|
- run: cargo make build
|
|
|
|
working-directory: rln-wasm
|
|
|
|
- run: cargo make test
|
|
|
|
working-directory: rln-wasm
|
2022-03-16 05:21:31 +00:00
|
|
|
lint:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout sources
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Install stable toolchain
|
|
|
|
uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
|
|
|
profile: minimal
|
|
|
|
toolchain: stable
|
|
|
|
override: true
|
|
|
|
components: rustfmt, clippy
|
2022-06-01 14:40:10 +00:00
|
|
|
- name: Update git submodules
|
|
|
|
run: git submodule update --init --recursive
|
2022-03-16 05:21:31 +00:00
|
|
|
- name: cargo fmt
|
|
|
|
run: cargo fmt --all -- --check
|
|
|
|
- name: cargo clippy
|
2022-09-20 12:22:46 +00:00
|
|
|
run: |
|
|
|
|
(cd multiplier && cargo clippy)
|
|
|
|
(cd rln && cargo clippy)
|
|
|
|
(cd semaphore && cargo clippy)
|
2022-03-17 07:45:20 +00:00
|
|
|
# Currently not treating warnings as error, too noisy
|
|
|
|
# -- -D warnings
|