[doc][test] add 'args' to usage and add integration test
This commit is contained in:
parent
05fff76875
commit
ae6169c7bc
9
.github/main.workflow
vendored
Normal file
9
.github/main.workflow
vendored
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
workflow "Integration tests" {
|
||||||
|
on = "push"
|
||||||
|
resolves = ["Quickstart"]
|
||||||
|
}
|
||||||
|
|
||||||
|
action "Quickstart" {
|
||||||
|
uses = "icepuma/rust-action@master"
|
||||||
|
args = "cd integration-test && cargo fmt -- --check && cargo clippy -- -Dwarnings && cargo test"
|
||||||
|
}
|
3
.gitignore
vendored
3
.gitignore
vendored
@ -1,2 +1,5 @@
|
|||||||
/.idea
|
/.idea
|
||||||
*.iml
|
*.iml
|
||||||
|
|
||||||
|
**/target
|
||||||
|
**/*.rs.bk
|
||||||
|
@ -19,5 +19,6 @@ workflow "Quickstart" {
|
|||||||
|
|
||||||
action "Quickstart" {
|
action "Quickstart" {
|
||||||
uses = "icepuma/rust-github-action@master"
|
uses = "icepuma/rust-github-action@master"
|
||||||
|
args = "cargo fmt -- --check && cargo clippy -- -Dwarnings && cargo test"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
4
integration-test/Cargo.lock
generated
Normal file
4
integration-test/Cargo.lock
generated
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
[[package]]
|
||||||
|
name = "rust-action"
|
||||||
|
version = "0.1.0"
|
||||||
|
|
7
integration-test/Cargo.toml
Normal file
7
integration-test/Cargo.toml
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
[package]
|
||||||
|
name = "rust-action"
|
||||||
|
version = "0.1.0"
|
||||||
|
authors = ["Stefan Ruzitschka <icepuma@godda.mn>"]
|
||||||
|
edition = "2018"
|
||||||
|
|
||||||
|
[dependencies]
|
7
integration-test/src/lib.rs
Normal file
7
integration-test/src/lib.rs
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
#[cfg(test)]
|
||||||
|
mod tests {
|
||||||
|
#[test]
|
||||||
|
fn it_works() {
|
||||||
|
assert_eq!(2 + 2, 4);
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user