Skip to content

Add basic CI checks

Add basic CI checks #1

Workflow file for this run

name: Rust CI
on:
push:
branches:
- main
pull_request:
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: Build Project
uses: actions-rs/cargo@v1
with:
command: build
args: --release
check_fmt:
name: Check Formatting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
components: rustfmt
override: true
- name: Check Formatting
uses: actions-rs/cargo@v1
with:
command: fmt
args: -- --check
lint:
name: Lint with Clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
components: clippy
override: true
- name: Lint with Clippy
uses: actions-rs/clippy-check@v1
with:
args: -- -D warnings
test:
name: Run Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: Run Tests
uses: actions-rs/cargo@v1
with:
command: test