Add GitHub CI workflows for running tests and clippy #4
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: check-httpd-server | |
on: push | |
jobs: | |
test: | |
name: Build & Test | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./httpd-server | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@stable | |
- name: Build | |
run: cargo build --all-features | |
- name: Run tests | |
run: cargo test --all-features | |
docs: | |
name: Docs | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./httpd-server | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@stable | |
- name: Docs | |
run: cargo doc --all --all-features | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./httpd-server | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@stable | |
- name: Run clippy | |
run: cargo clippy --all --tests | |
- name: Check formatting | |
run: cargo fmt --all --check |