diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index e800041..0000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,12 +0,0 @@ -version: 2 - -jobs: - build: - docker: - - image: rust:1.57 - steps: - - checkout - - run: rustup component add rustfmt - - run: cargo build - - run: cargo test - - run: cargo fmt -- --check 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