Skip to content

chore: first stab at CI #1

chore: first stab at CI

chore: first stab at CI #1

Workflow file for this run

name: Rust CI
on:
push:
branches:
- '*'
pull_request:
branches:
- '*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: |
rustup component add clippy
rustup component add rustfmt
cargo install cargo-tarpaulin
- name: Build with Cargo
run: cargo build
- name: Run tests with coverage
run: cargo tarpaulin --out Html
- name: Check formatting
run: cargo fmt --all -- --check
- name: Lint with Clippy
run: cargo clippy --all-targets --all-features -- -D warnings
- name: Upload coverage report
uses: actions/upload-artifact@v3
with:
name: tarpaulin_report
path: tarpaulin-report.html