74 lines
1.4 KiB
YAML
74 lines
1.4 KiB
YAML
|
---
|
||
|
|
||
|
steps:
|
||
|
target:
|
||
|
when:
|
||
|
- event: push
|
||
|
image: rust
|
||
|
environment: [CARGO_TERM_COLOR=always]
|
||
|
pull: true
|
||
|
failure: ignore
|
||
|
commands:
|
||
|
- rustup target add wasm32-unknown-unknown
|
||
|
fmt:
|
||
|
when:
|
||
|
- event: push
|
||
|
image: rust
|
||
|
environment: [CARGO_TERM_COLOR=always]
|
||
|
pull: true
|
||
|
failure: ignore
|
||
|
commands:
|
||
|
- rustup component add rustfmt
|
||
|
- cargo fmt --check --all
|
||
|
check:
|
||
|
when:
|
||
|
- event: push
|
||
|
image: rust
|
||
|
environment: [CARGO_TERM_COLOR=always]
|
||
|
pull: true
|
||
|
commands:
|
||
|
- cargo check
|
||
|
build:
|
||
|
when:
|
||
|
- event: push
|
||
|
image: rust
|
||
|
environment: [CARGO_TERM_COLOR=always]
|
||
|
pull: true
|
||
|
commands:
|
||
|
- cargo build
|
||
|
test:
|
||
|
when:
|
||
|
- event: push
|
||
|
image: rust
|
||
|
environment: [CARGO_TERM_COLOR=always]
|
||
|
pull: true
|
||
|
commands:
|
||
|
- cargo test
|
||
|
clippy:
|
||
|
when:
|
||
|
- event: push
|
||
|
image: rust
|
||
|
environment: [CARGO_TERM_COLOR=always]
|
||
|
pull: true
|
||
|
failure: ignore
|
||
|
commands:
|
||
|
- rustup component add clippy
|
||
|
- cargo clippy
|
||
|
doc:
|
||
|
when:
|
||
|
- event: push
|
||
|
image: rust
|
||
|
environment: [CARGO_TERM_COLOR=always]
|
||
|
pull: true
|
||
|
commands:
|
||
|
- cargo doc
|
||
|
audit:
|
||
|
when:
|
||
|
- event: push
|
||
|
image: rust
|
||
|
environment: [CARGO_TERM_COLOR=always]
|
||
|
pull: true
|
||
|
commands:
|
||
|
- cargo install cargo-audit
|
||
|
- cargo audit
|