Skip to content

Commit

Permalink
configure CI
Browse files Browse the repository at this point in the history
  • Loading branch information
jgraef committed Jul 11, 2024
1 parent b8526fe commit 2f93b87
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/dependabot.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: 2
updates:

- package-ecosystem: "cargo"
directory: "/"
schedule:
interval: "weekly"
timezone: "Europe/Berlin"
day: "monday"
time: "4:00"
37 changes: 37 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Build

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
ci:
name: CI
strategy:
matrix:
os: [ ubuntu-latest, windows-latest, macos-latest ]
toolchain: [ nightly ]
runs-on: ${{ matrix.os }}
steps:

- name: Check out
uses: actions/checkout@v4

- name: Set up Rust
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.toolchain }}
components: clippy, rustfmt

- name: Set up Cache
uses: Swatinem/rust-cache@v2

- name: Run Cargo:fmt
run: cargo fmt --all -- --check

- name: Run Cargo:test
run: cargo test --verbose --all-features

0 comments on commit 2f93b87

Please sign in to comment.