[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
No known key found for this signature in database
GPG Key ID: C0C16E961BA670E0
6 changed files with 31 additions and 0 deletions

9
.github/main.workflow vendored Normal file
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
.gitignore vendored
View File

@ -1,2 +1,5 @@
/.idea
*.iml
**/target
**/*.rs.bk

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
integration-test/Cargo.lock generated Normal file
View File

@ -0,0 +1,4 @@
[[package]]
name = "rust-action"
version = "0.1.0"

View File

@ -0,0 +1,7 @@
[package]
name = "rust-action"
version = "0.1.0"
authors = ["Stefan Ruzitschka <icepuma@godda.mn>"]
edition = "2018"
[dependencies]

View File

@ -0,0 +1,7 @@
#[cfg(test)]
mod tests {
#[test]
fn it_works() {
assert_eq!(2 + 2, 4);
}
}