diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..dc9863e --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,18 @@ +version: 2 +updates: + - package-ecosystem: "cargo" + directory: "/" + schedule: + interval: "weekly" + day-of-week: "monday" + timezone: "Etc/UTC" + time: "03:00" + target-branch: "develop" + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "weekly" + day-of-week: "monday" + timezone: "Etc/UTC" + time: "03:00" + target-branch: "develop" diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..766e10b --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,35 @@ +name: CI + +on: + push: + branches: + - main + - develop + pull_request: + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + build-and-test: + runs-on: ubuntu-latest + steps: + - name: checkout + uses: actions/checkout@v4 + - name: configure toolchain + run: rustup toolchain install stable --profile minimal + - name: install machete + run: cargo install machete + - name: run machete + run: cargo machete + - name: format + run: cargo fmt --all -- --check + - name: build + run: cargo build + - name: clippy + run: cargo clippy --all-targets --all-features -- -D warnings + - name: test + run: cargo test + - name: docs + run: cargo doc --no-deps \ No newline at end of file