From 4e92c4d742fd24a08835ce96121c6c9e00afdb8d Mon Sep 17 00:00:00 2001 From: Sebastian Martinez Date: Wed, 5 Jun 2024 10:48:53 +0200 Subject: [PATCH] Add CI build, test and lint step for httpd --- .github/workflows/check-httpd-server.yml | 41 ++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .github/workflows/check-httpd-server.yml diff --git a/.github/workflows/check-httpd-server.yml b/.github/workflows/check-httpd-server.yml new file mode 100644 index 0000000000..2b713a08b1 --- /dev/null +++ b/.github/workflows/check-httpd-server.yml @@ -0,0 +1,41 @@ +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