Skip to content

Commit

Permalink
chore: CI
Browse files Browse the repository at this point in the history
  • Loading branch information
amunra committed Jan 29, 2024
1 parent 63a83ee commit bd08793
Showing 1 changed file with 54 additions and 0 deletions.
54 changes: 54 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
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/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

0 comments on commit bd08793

Please sign in to comment.