name: CI
on:
push:
branches: [main, tests-uds]
pull_request:
branches: [main]
env:
CARGO_TERM_COLOR: always
jobs:
ci:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
components: rustfmt, clippy
- name: Build
run: cargo build
- name: Run unit tests
run: cargo test --workspace
- name: Run clippy
run: cargo clippy -- -D warnings
- name: Check formatting
run: cargo fmt -- --check
- name: Run SQLite tests
uses: ./test-vfs
with:
args: test/full.test