Skip to content

Implement a demo app (#5) #21

Implement a demo app (#5)

Implement a demo app (#5) #21

Workflow file for this run

name: Rust
on:
push:
branches: ["main"]
pull_request:
jobs:
format:
name: Format
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: moonrepo/setup-rust@v1
with:
components: rustfmt
- name: Check formatting
run: >-
cargo fmt --all --check
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: moonrepo/setup-rust@v1
with:
components: clippy
- name: Run linter
run: >-
cargo clippy --all-features
- name: Run linter (demo app)
run: >-
cargo clippy
working-directory: ./demo
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: moonrepo/setup-rust@v1
- name: Run tests
run: >-
cargo test
- name: Run tests (all features)
run: >-
cargo test --all-features
- name: Run tests (minimal features)
run: >-
cargo test --no-default-features --features 'dns environment http' --all-targets