Skip to content

Commit

Permalink
chore: add ci.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
marvinlanhenke committed Oct 4, 2024
1 parent 2d15239 commit 02bfd6c
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: CI

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

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }}
cancel-in-progress: true

jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check Diff
run: git diff --exit-code
- name: Cargo Format
run: make check-fmt
- name: Cargo Clippy
run: make check-clippy
- name: Cargo Sort
run: make cargo-sort
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
steps:
- uses: actions/checkout@v4
- name: Build
run: cargo build
unit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run Tests
run: cargo test --no-fail-fast --all-targets --all-features --workspace
- name: Run Doc Tests
run: cargo test --no-fail-fast --doc --all-features --workspace

0 comments on commit 02bfd6c

Please sign in to comment.