Skip to content

Add CI

Add CI #1

Workflow file for this run

name: pull_request
on:
pull_request:
merge_group:
types:
- checks_requested
push:
branches:
- main
env:
SQLX_OFFLINE: true
jobs:
format:
name: format
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/[email protected]
with:
components: rustfmt
- run: cargo fmt --all --check
lint:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/[email protected]
with:
components: clippy
- uses: Swatinem/rust-cache@v2
- run: cargo check --workspace --no-fail-fast --all-targets
test:
name: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/[email protected]
- uses: Swatinem/rust-cache@v2
- run: cargo test --workspace --no-fail-fast