Radish alpha
r
Radicle web interface
Radicle
Git (anonymous pull)
Log in to clone via SSH
http: Add GitHub workflow for http-server test and linting
Sebastian Martinez committed 1 year ago
commit f87c09c634818030224e5d34ed51d7cb1b11069b
parent 8ea62a692af73f4e2634cb06021a7374270d96ee
1 file changed +50 -0
added .github/workflows/check-http-server.yml
@@ -0,0 +1,50 @@
+
name: check-http-server
+
on: push
+

+
jobs:
+
  test:
+
    name: Build & Test
+
    runs-on: ubuntu-latest
+
    defaults:
+
      run:
+
        working-directory: ./http-server
+
    steps:
+
      - uses: actions/checkout@v4
+
      - uses: dtolnay/rust-toolchain@stable
+
      - uses: Swatinem/rust-cache@v2
+
        with:
+
          workspaces: http-server -> target
+
      - 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: ./http-server
+
    steps:
+
      - uses: actions/checkout@v4
+
      - uses: dtolnay/rust-toolchain@stable
+
      - uses: Swatinem/rust-cache@v2
+
        with:
+
          workspaces: http-server -> target
+
      - name: Docs
+
        run: cargo doc --all --all-features
+
  lint:
+
    name: Lint
+
    runs-on: ubuntu-latest
+
    defaults:
+
      run:
+
        working-directory: ./http-server
+
    steps:
+
      - uses: actions/checkout@v4
+
      - uses: dtolnay/rust-toolchain@stable
+
      - uses: Swatinem/rust-cache@v2
+
        with:
+
          workspaces: http-server -> target
+
      - name: Run clippy
+
        run: cargo clippy --all --tests
+
      - name: Check formatting
+
        run: cargo fmt --all --check