[doc][test] add 'args' to usage and add integration test

This commit is contained in:
Stefan Ruzitschka
2019-01-26 00:42:52 +01:00
parent 05fff76875
commit ae6169c7bc
6 changed files with 31 additions and 0 deletions
+9
View 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
View File
@@ -1,2 +1,5 @@
/.idea
*.iml
**/target
**/*.rs.bk
+1
View File
@@ -19,5 +19,6 @@ workflow "Quickstart" {
action "Quickstart" {
uses = "icepuma/rust-github-action@master"
args = "cargo fmt -- --check && cargo clippy -- -Dwarnings && cargo test"
}
```
+4
View File
@@ -0,0 +1,4 @@
[[package]]
name = "rust-action"
version = "0.1.0"
+7
View File
@@ -0,0 +1,7 @@
[package]
name = "rust-action"
version = "0.1.0"
authors = ["Stefan Ruzitschka <icepuma@godda.mn>"]
edition = "2018"
[dependencies]
+7
View File
@@ -0,0 +1,7 @@
#[cfg(test)]
mod tests {
#[test]
fn it_works() {
assert_eq!(2 + 2, 4);
}
}