From cd39cedd6c69df58c6a3f3dfb856fd8ab201021c Mon Sep 17 00:00:00 2001 From: Alexander Batischev Date: Mon, 6 Jan 2025 14:34:24 +0300 Subject: [PATCH] Set up CI and Dependabot --- .github/dependabot.yml | 11 +++++++++++ .github/workflows/build_and_test.yml | 21 +++++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 .github/dependabot.yml create mode 100644 .github/workflows/build_and_test.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..1116676 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,11 @@ +version: 2 +updates: + - package-ecosystem: "cargo" + directory: "/" + schedule: + interval: "daily" + + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "daily" diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml new file mode 100644 index 0000000..af2366d --- /dev/null +++ b/.github/workflows/build_and_test.yml @@ -0,0 +1,21 @@ +name: Build and test + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions-rs/toolchain@v1 + with: + toolchain: stable + - uses: actions/checkout@v4 + - name: Build + run: cargo build --verbose + - name: Run tests + run: cargo test --verbose