Skip to content

Commit

Permalink
Create linkcheck.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
npentrel authored Jun 18, 2024
1 parent 542e18b commit 20bd223
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/linkcheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# .github/workflows/run-htmltest.yml
# (c) 2021 Robb Romans
#
# Run htmltest link checker on generated HTML output in dist/
# https://github.com/wjdp/htmltest
#
name: run-htmltest-external
concurrency:
group: pullrequest-untrusted-htmltest-${{ github.event.number }}
cancel-in-progress: true
on: pull_request
jobs:
htmltest:
runs-on: ubuntu-large
container:
image: ghcr.io/cirruslabs/flutter:latest
steps:
- name: Checkout Code
uses: actions/checkout@v4

- name: Setup Flutter
run: flutter pub get

- name: Generate docs
run: dart doc

- name: Test HTML
# https://github.com/wjdp/htmltest-action/
# Don't fail the build on broken links
continue-on-error: false
uses: wjdp/htmltest-action@master
with:
config: .htmltest-local.yml
- name: Archive htmltest results
uses: actions/upload-artifact@v3
# Note: Set ACTIONS_RUNTIME_TOKEN env variable to test with nektos/act
with:
name: htmltest-report
path: tmp/.htmltest/htmltest.log
retention-days: 7 # Default is 90 days

0 comments on commit 20bd223

Please sign in to comment.