Skip to content

chore: CI

chore: CI #9

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 Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
components: rustfmt, clippy
- name: Install tarpaulin
uses: actions-rs/cargo@v1
with:
command: install
args: cargo-tarpaulin
- name: Build
uses: actions-rs/cargo@v1
with:
command: build
- name: Test with coverage
uses: actions-rs/cargo@v1
with:
command: tarpaulin
args: --out Html
- name: Check formatting
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
- name: Check linting
uses: actions-rs/cargo@v1
with:
command: clippy
args: --all-targets --all-features -- -D warnings
- name: Upload coverage report
uses: actions/upload-artifact@v3
with:
name: tarpaulin_report
path: tarpaulin-report.html