Finite state machines in rust; bendns fork to add types.
migrate to GitHub Actions
| -rw-r--r-- | .github/workflows/tests.yml | 37 | ||||
| -rw-r--r-- | .travis.yml | 8 | ||||
| -rw-r--r-- | Cargo.toml | 3 | ||||
| -rw-r--r-- | README.md | 3 | ||||
| -rw-r--r-- | rust_fsm_dsl/Cargo.toml | 3 |
5 files changed, 37 insertions, 17 deletions
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..76cb6e2 --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,37 @@ +on: + push: + +name: Tests + +jobs: + tests: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Install Rust toolchain + uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: stable + components: rustfmt, clippy + override: true + + - name: Run cargo fmt + uses: actions-rs/cargo@v1 + with: + command: fmt + args: --all -- --check + + - name: Run cargo clippy + uses: actions-rs/cargo@v1 + with: + command: clippy + + - name: Run tests + uses: actions-rs/cargo@v1 + env: + RUST_BACKTRACE: 1 + with: + command: test diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index ef855b3..0000000 --- a/.travis.yml +++ /dev/null @@ -1,8 +0,0 @@ -language: rust -cache: cargo -before_script: - - rustup component add rustfmt clippy -script: - - cargo fmt -- --check - - cargo clippy - - cargo test @@ -12,9 +12,6 @@ version = "0.3.0" authors = ["Yevhenii Babichenko"] edition = "2018" -[badges] -travis-ci = { repository = "eugene-babichenko/rust-fsm" } - [dependencies] rust-fsm-dsl = { path = "./rust_fsm_dsl", version = "0.3.0" } @@ -2,7 +2,6 @@ [![Documentation][docs-badge]][docs-link] [![Latest Version][crate-badge]][crate-link] -[![Build Status][build-badge]][build-link] The `rust-fsm` crate provides a simple and universal framework for building state machines in Rust with minimum effort. @@ -119,5 +118,3 @@ You can see an example of the Circuit Breaker state machine in the [docs-link]: https://docs.rs/rust-fsm [crate-badge]: https://img.shields.io/crates/v/rust-fsm.svg [crate-link]: https://crates.io/crates/rust-fsm -[build-badge]: https://travis-ci.org/eugene-babichenko/rust-fsm.svg?branch=master -[build-link]: https://travis-ci.org/eugene-babichenko/rust-fsm diff --git a/rust_fsm_dsl/Cargo.toml b/rust_fsm_dsl/Cargo.toml index 577c307..c51e4c2 100644 --- a/rust_fsm_dsl/Cargo.toml +++ b/rust_fsm_dsl/Cargo.toml @@ -12,9 +12,6 @@ version = "0.3.0" authors = ["Yevhenii Babichenko"] edition = "2018" -[badges] -travis-ci = { repository = "eugene-babichenko/rust-fsm" } - [lib] proc-macro = true |