name: Rust Validation
on:
push:
pull_request:
workflow_dispatch:
env:
CARGO_TERM_COLOR: always
jobs:
format:
name: Format
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: cargo fmt
run: cargo fmt --verbose --check
validate:
name: Build and Test
runs-on: ubuntu-latest
needs: format
steps:
- uses: actions/checkout@v3
- name: Build
run: cargo build --verbose
- name: Build (All Features)
run: cargo build --verbose --all-features
- name: Tests
run: cargo test --verbose
- name: Tests (All Features)
run: cargo test --verbose --all-features
- name: Packaging Test
run: cargo package --verbose --all-features