From 7a3c79bebbecc74b24c514683dc42f09fccf4e2a Mon Sep 17 00:00:00 2001 From: adam-fowler Date: Sun, 15 Sep 2024 11:18:55 +0000 Subject: [PATCH] Update from hummingbird-project-template 52a2c1f50039efafa9a0c6eedeb674a817ec3606 --- .github/workflows/api-breakage.yml | 2 +- .github/workflows/verify-documentation.yml | 35 ++++++++++++++++++++++ 2 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/verify-documentation.yml diff --git a/.github/workflows/api-breakage.yml b/.github/workflows/api-breakage.yml index a69ed35..87eedac 100644 --- a/.github/workflows/api-breakage.yml +++ b/.github/workflows/api-breakage.yml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 15 container: - image: swift:5.10 + image: swift:latest steps: - name: Checkout uses: actions/checkout@v4 diff --git a/.github/workflows/verify-documentation.yml b/.github/workflows/verify-documentation.yml new file mode 100644 index 0000000..a587e6a --- /dev/null +++ b/.github/workflows/verify-documentation.yml @@ -0,0 +1,35 @@ +name: Verify Documentation + +on: + pull_request: +concurrency: + group: ${{ github.workflow }}-${{ github.ref }}-verifydocs + cancel-in-progress: true + +jobs: + linux: + runs-on: ubuntu-latest + timeout-minutes: 15 + container: + image: swift:latest + steps: + - name: Install rsync 📚 + run: | + apt-get update && apt-get install -y rsync bc + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + path: "package" + - name: Checkout + uses: actions/checkout@v4 + with: + repository: "hummingbird-project/hummingbird-docs" + fetch-depth: 0 + path: "documentation" + - name: Verify + run: | + cd documentation + swift package edit ${GITHUB_REPOSITORY#*/} --path ../package + ./scripts/build-docc.sh -e +