Implement a demo app #17
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |