Skip to content

Link Validator

Link Validator #94

name: Link Validator
on:
pull_request:
schedule:
- cron: '0 6 * * 1'
jobs:
validate-links:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
# See https://github.com/actions/checkout/issues/299#issuecomment-677674415
ref: ${{ github.event.pull_request.head.sha }}
# fetch everything https://github.com/actions/checkout#fetch-all-history-for-all-tags-and-branches
fetch-depth: 0
- name: Set up JDK 11
uses: olafurpg/setup-scala@v10
with:
java-version: [email protected]
- name: Cache Coursier cache
uses: coursier/[email protected]
- name: sbt site
run: sbt akka-grpc-docs/makeSite
- name: Install Coursier command line tool
run: curl -fLo cs https://git.io/coursier-cli-linux && chmod +x cs && ./cs
- name: Run Link Validator
run: |
VERSION=$(ls docs/target/site/docs/akka-grpc)
sed -e "s/snapshot/$VERSION/" scripts/link-validator.conf > /tmp/link-validator.conf
./cs launch net.runne::site-link-validator:0.2.0 -- /tmp/link-validator.conf