From a5f7824832118a44897697f7ab08435335b7ba2a Mon Sep 17 00:00:00 2001 From: Stefan Ruzitschka Date: Sat, 9 Nov 2019 00:48:03 +0100 Subject: [PATCH] [migrate] to new workflow syntax --- .github/main.workflow | 9 --------- .github/workflows/example.yml | 13 +++++++++++++ README.md | 24 +++++++++++++++--------- 3 files changed, 28 insertions(+), 18 deletions(-) delete mode 100644 .github/main.workflow create mode 100644 .github/workflows/example.yml diff --git a/.github/main.workflow b/.github/main.workflow deleted file mode 100644 index d9c4a50..0000000 --- a/.github/main.workflow +++ /dev/null @@ -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" -} diff --git a/.github/workflows/example.yml b/.github/workflows/example.yml new file mode 100644 index 0000000..8903581 --- /dev/null +++ b/.github/workflows/example.yml @@ -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 diff --git a/README.md b/README.md index 094fd67..14814e2 100644 --- a/README.md +++ b/README.md @@ -12,14 +12,20 @@ # Usage -``` -workflow "Quickstart" { - on = "push" - resolves = ["Quickstart"] -} +In a file inside `.github/workflows/quickstart.yml` -action "Quickstart" { - uses = "icepuma/rust-action@master" - args = "cargo fmt -- --check && cargo clippy -- -Dwarnings && cargo test" -} +```yaml +name: Rust Example + +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 ```