From b6e3136e05e32645122867fb5426f620ebbe7329 Mon Sep 17 00:00:00 2001 From: Brendan <2bndy5@gmail.com> Date: Tue, 9 Jul 2024 05:43:11 -0700 Subject: [PATCH] add .github folder includes - CI workflow - funding info - dependabot config --- .github/FUNDING.yml | 3 +++ .github/dependabot.yml | 23 +++++++++++++++++++++++ .github/workflows/build.yml | 24 ++++++++++++++++++++++++ 3 files changed, 50 insertions(+) create mode 100644 .github/FUNDING.yml create mode 100644 .github/dependabot.yml create mode 100644 .github/workflows/build.yml diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml new file mode 100644 index 0000000..c6e682c --- /dev/null +++ b/.github/FUNDING.yml @@ -0,0 +1,3 @@ +# These are supported funding model platforms + +github: 2bndy5 diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..6b0724a --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,23 @@ +# To get started with Dependabot version updates, you'll need to specify which +# package ecosystems to update and where the package manifests are located. +# Please see the documentation for all configuration options: +# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates + +version: 2 +updates: + - package-ecosystem: github-actions + directory: / + schedule: + interval: "weekly" + groups: + actions: + patterns: + - "*" + - package-ecosystem: cargo + directory: / + schedule: + interval: "daily" + groups: + cargo: + patterns: + - "*" diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..3b73eb8 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,24 @@ +name: build and test CI + +on: + push: + branches: [main] + pull_request: + branches: [main] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Setup Rust + uses: dtolnay/rust-toolchain@stable + - run: cargo build + - run: cargo check + - run: cargo fmt + - run: cargo doc --no-deps + - name: save docs as artifact + uses: actions/upload-artifact@v4 + with: + name: rf24-rs docs + path: target/doc