Skip to content

Commit

Permalink
ci: setup github actions & dependabot
Browse files Browse the repository at this point in the history
  • Loading branch information
calteran committed Jan 16, 2024
1 parent bd4fe36 commit 60b0c17
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -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"
35 changes: 35 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 60b0c17

Please sign in to comment.