diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index 107780c..0000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,14 +0,0 @@ -version: 2 - -jobs: - build: - docker: - - image: rust:1.57 - steps: - - checkout - - run: rustup component add rustfmt - - run: rustup component add clippy - - run: cargo build - - run: cargo test - - run: cargo fmt -- --check - - run: cargo clippy -- -D warnings diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml new file mode 100644 index 0000000..a8435d6 --- /dev/null +++ b/.github/workflows/build-and-test.yml @@ -0,0 +1,25 @@ +name: Check and build rust library + +on: + pull_request: + branches: + - master + push: + branches: + - master + +jobs: + check-and-build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Stable with rustfmt and clippy + uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: 1.57 + components: rustfmt, clippy + - run: cargo fmt -- --check + - run: cargo build + - run: cargo test + - run: cargo clippy -- -D warnings diff --git a/README.md b/README.md index b8c1f9c..f86f8e6 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,3 @@ -[![CircleCI](https://circleci.com/gh/Sensirion/lin-bus-rs.svg?style=shield)](https://circleci.com/gh/Sensirion/lin-bus-rs) [![Docs.rs](https://docs.rs/lin-bus/badge.svg)](https://docs.rs/lin-bus/) # lin-bus-rs