[migrate] to new workflow syntax
This commit is contained in:
parent
42d2bc9d78
commit
a5f7824832
9
.github/main.workflow
vendored
9
.github/main.workflow
vendored
@ -1,9 +0,0 @@
|
|||||||
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"
|
|
||||||
}
|
|
13
.github/workflows/example.yml
vendored
Normal file
13
.github/workflows/example.yml
vendored
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
name: Quickstart
|
||||||
|
|
||||||
|
on: [push]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v1
|
||||||
|
- uses: icepuma/rust-action@master
|
||||||
|
with:
|
||||||
|
args: cd integration-test && cargo fmt -- --check && cargo clippy -- -Dwarnings && cargo test
|
24
README.md
24
README.md
@ -12,14 +12,20 @@
|
|||||||
|
|
||||||
# Usage
|
# Usage
|
||||||
|
|
||||||
```
|
In a file inside `.github/workflows/quickstart.yml`
|
||||||
workflow "Quickstart" {
|
|
||||||
on = "push"
|
|
||||||
resolves = ["Quickstart"]
|
|
||||||
}
|
|
||||||
|
|
||||||
action "Quickstart" {
|
```yaml
|
||||||
uses = "icepuma/rust-action@master"
|
name: Rust Example
|
||||||
args = "cargo fmt -- --check && cargo clippy -- -Dwarnings && cargo test"
|
|
||||||
}
|
on: [push]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v1
|
||||||
|
- uses: icepuma/rust-action@master
|
||||||
|
with:
|
||||||
|
args: cd integration-test && cargo fmt -- --check && cargo clippy -- -Dwarnings && cargo test
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user