Skip to content

Merge pull request #23 from roadster-rs/example #18

Merge pull request #23 from roadster-rs/example

Merge pull request #23 from roadster-rs/example #18

Workflow file for this run

name: Checks
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
CARGO_TERM_COLOR: always
jobs:
roadster_no_features:
name: No features
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Test
run: cargo test --no-fail-fast --no-default-features
- name: Check
run: cargo check --no-default-features
roadster_default_features:
name: Default features
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Test
run: cargo test --no-fail-fast
- name: Check
run: cargo check
roadster_all_features:
name: All features
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Test
run: cargo test --no-fail-fast --all-features
- name: Check
run: cargo check --all-features
roadster_with_all_feature_combinations:
name: Feature combos
runs-on: ubuntu-latest
strategy:
matrix:
# Todo: Is there a way to generate this list automatically?
features:
- sidekiq
- db-sql
- open-api
- sidekiq,db-sql
- sidekiq,open-api
- db-sql,open-api
steps:
- uses: actions/checkout@v4
- name: Test
run: cargo test --no-fail-fast --no-default-features --features ${{matrix.features}}
- name: Check
run: cargo check --no-default-features --features ${{matrix.features}}
clippy:
name: Clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Clippy
run: cargo clippy --no-deps -- -D warnings
check_formatting:
name: Formatting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Formatting
run: cargo fmt -- --check
examples:
name: Examples
runs-on: ubuntu-latest
strategy:
matrix:
# Todo: Is there a way to generate this list automatically?
example:
- minimal
defaults:
run:
working-directory: ./examples/${{matrix.example}}
steps:
- uses: actions/checkout@v4
- name: Test
run: cargo test --no-fail-fast
- name: Check
run: cargo check
- name: Clippy
run: cargo clippy --no-deps -- -D warnings
- name: Formatting
run: cargo fmt -- --check