[migrate] to new workflow syntax

This commit is contained in:
Stefan Ruzitschka 2019-11-09 00:48:03 +01:00
parent 42d2bc9d78
commit a5f7824832
No known key found for this signature in database
GPG Key ID: C0C16E961BA670E0
3 changed files with 28 additions and 18 deletions

View File

@ -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
View 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

View File

@ -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
``` ```