From d1cbc285f1f25903afada45a619afa79162e8288 Mon Sep 17 00:00:00 2001 From: Jared Parnell Date: Wed, 2 Nov 2022 11:40:32 +0000 Subject: [PATCH] actions: Link check https://github.com/Open-Telecoms-Data/open-fibre-data-standard/issues/19 --- .github/workflows/linkcheck.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/linkcheck.yml diff --git a/.github/workflows/linkcheck.yml b/.github/workflows/linkcheck.yml new file mode 100644 index 0000000..284fd8e --- /dev/null +++ b/.github/workflows/linkcheck.yml @@ -0,0 +1,20 @@ +name: Link Check +on: [push, pull_request] + +jobs: + linkcheck: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Setup python + uses: actions/setup-python@v2 + with: + python-version: 3.9 + architecture: x64 + - uses: actions/cache@v1 + with: + path: ~/.cache/pip + key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} + - run: pip install -r requirements.txt + - run: cd ./docs/ && make dirhtml + - run: cd ./docs/ && make linkcheck