Skip to content

Add Rust workflow

Add Rust workflow #6

Workflow file for this run

on: [push, pull_request]
name: CI
jobs:
check:
name: Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/[email protected]
- run: cargo check
working-directory: web_api
test:
name: Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/[email protected]
- run: cargo test
working-directory: web_api
fmt:
name: Rustfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/[email protected]
- run: rustup component add rustfmt
- run: cargo fmt --all -- --check
working-directory: web_api
clippy:
name: Clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/[email protected]
- run: rustup component add clippy
- run: cargo clippy -- -D warnings
working-directory: web_api