gotenberg_pdf 0.5.2

A Rust client for the Gotenberg PDF API
Documentation
name: Rust

on:
  push:
    branches: ["master"]
  pull_request:
    branches: ["master"]

env:
  CARGO_TERM_COLOR: always

jobs:
  build:
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v4

      # Step to spin up the Gotenberg Docker container
      - name: Start Gotenberg Docker container
        run: docker run -d -p 3000:3000 gotenberg/gotenberg:8

      # Step to verify Gotenberg container is reachable
      - name: Check Gotenberg container is reachable
        run: |
          for i in {1..10}; do
            if curl --silent --head http://localhost:3000/; then
              echo "Gotenberg is reachable!";
              exit 0;
            fi
            echo "Waiting for Gotenberg...";
            sleep 3;
          done
          echo "Failed to reach Gotenberg";
          exit 1

      - name: Run tests (no features)
        run: cargo test --lib

      - name: Run tests (stream only)
        run: cargo test --lib --features=stream

      - name: Run tests (blocking only)
        run: cargo test --lib --features=blocking

      - name: Run tests (all features and doctests)
        run: cargo test --all-features