Add http server #21
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: Continuous Integration | |
on: | |
push: | |
branches: 'main' | |
pull_request: | |
branches: 'main' | |
permissions: | |
contents: read # to fetch code (actions/checkout) | |
jobs: | |
fmt: | |
name: fmt | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: dtolnay/rust-toolchain@1.78.0 | |
with: { components: rustfmt } | |
- run: cargo fmt --all -- --check | |
clippy: | |
name: clippy | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: dtolnay/rust-toolchain@1.78.0 | |
with: { components: clippy } | |
- name: Cache Dependencies | |
uses: Swatinem/rust-cache@v2 | |
- name: Check with Clippy | |
run: cargo clippy | |
test: | |
name: cargo test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: dtolnay/rust-toolchain@1.78.0 | |
- name: Cache Dependencies | |
uses: Swatinem/rust-cache@v2 | |
- name: install poppler | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y poppler-utils | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
cache: 'yarn' | |
cache-dependency-path: tests/fixtures/static_server/yarn.lock | |
- run: cargo test --all-features |