Feature/mixnet contract ci (#562)

* Fixed constant not updated in error macros

* Fixed clippy warning

* Attempt at adding mixnet contract to CI
This commit is contained in:
Jędrzej Stuczyński
2021-04-08 11:42:25 +01:00
committed by GitHub
parent 3136346a01
commit 22bfd44065
3 changed files with 46 additions and 10 deletions
+43
View File
@@ -0,0 +1,43 @@
name: Mixnet Contract
on: [push, pull_request]
jobs:
ci:
# since it's going to be compiled into wasm, there's absolutely
# no point in running CI on different OS-es
runs-on: ubuntu-latest
continue-on-error: ${{ matrix.rust == 'nightly' }}
strategy:
matrix:
rust: [ stable, beta, nightly ]
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
target: wasm32-unknown-unknown
override: true
components: rustfmt, clippy
- uses: actions-rs/cargo@v1
with:
command: build
args: --manifest-path contracts/mixnet/Cargo.toml --target wasm32-unknown-unknown
- uses: actions-rs/cargo@v1
with:
command: test
args: --manifest-path contracts/mixnet/Cargo.toml
- uses: actions-rs/cargo@v1
with:
command: fmt
args: --manifest-path contracts/mixnet/Cargo.toml -- --check
- uses: actions-rs/cargo@v1
with:
command: clippy
args: --manifest-path contracts/mixnet/Cargo.toml -- -D warnings