ci: install cargo-audit and clippy
This commit is contained in:
parent
a2eed17002
commit
2e5ef68219
|
@ -1,7 +1,16 @@
|
|||
version: 2.1
|
||||
|
||||
# https://medium.com/@edouard.oger/rust-caching-on-circleci-using-sccache-c996344f0115
|
||||
commands:
|
||||
setup-lints:
|
||||
steps:
|
||||
- run:
|
||||
name: Install cargo-audit
|
||||
command: cargo install cargo-audit
|
||||
- run:
|
||||
name: Install clippy
|
||||
command: rustup component add clippy
|
||||
|
||||
# https://medium.com/@edouard.oger/rust-caching-on-circleci-using-sccache-c996344f0115
|
||||
setup-sccache:
|
||||
steps:
|
||||
- run:
|
||||
|
@ -37,6 +46,7 @@ jobs:
|
|||
- image: circleci/rust:latest
|
||||
steps:
|
||||
- checkout
|
||||
- setup-lints
|
||||
- setup-sccache
|
||||
- restore-sccache-cache
|
||||
- run: cargo test --all
|
||||
|
|
22
contract.sol
22
contract.sol
|
@ -1,22 +0,0 @@
|
|||
pragma solidity ^0.6.6;
|
||||
|
||||
contract SimpleStorage {
|
||||
|
||||
event ValueChanged(address indexed author, string oldValue, string newValue);
|
||||
|
||||
string _value;
|
||||
|
||||
constructor(string memory value) public {
|
||||
emit ValueChanged(msg.sender, _value, value);
|
||||
_value = value;
|
||||
}
|
||||
|
||||
function getValue() view public returns (string memory) {
|
||||
return _value;
|
||||
}
|
||||
|
||||
function setValue(string memory value) public {
|
||||
emit ValueChanged(msg.sender, _value, value);
|
||||
_value = value;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue