Skip to content

chore: CI

chore: CI #5

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: Build
uses: actions-rs/cargo@v1
with:
command: build
- name: Test with coverage
uses: actions-rs/[email protected]
with:
version: 0.27.3
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