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