Skip to content

Commit

Permalink
test: extend link checks
Browse files Browse the repository at this point in the history
  • Loading branch information
nobkd committed Nov 14, 2024
1 parent 42f4fb7 commit 0239584
Showing 1 changed file with 30 additions and 10 deletions.
40 changes: 30 additions & 10 deletions .github/workflows/links.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,30 +14,50 @@ on:
workflow_dispatch:

jobs:
links:
readme:
if: ${{ github.repository_owner == 'nuejs' || github.event_name == 'workflow_dispatch' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Check README links
uses: lycheeverse/lychee-action@v2
with:
args: >
--no-progress
--exclude-path node_modules
--exclude localhost
--base .
--
**/README.md
token: ${{ secrets.GITHUB_TOKEN }}

site:
if: ${{ github.repository_owner == 'nuejs' || github.event_name == 'workflow_dispatch' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2

- name: Install and build docs
- name: Install and build site
run: |
bun install
cd packages/nuekit
bun link
cd -
nue build -pr packages/nuejs.org
cd ../nuejs.org
nue build -p
nue -pP 8080 &
- name: Check links
if: success() || failure()
- name: Find files to check
run: echo 'LINKS=$(find packages/nuejs.org/.dist/prod -name "*.html" -printf "http://localhost:8080/%P ")' >> $GITHUB_ENV

- name: Check site links
uses: lycheeverse/lychee-action@v2
with:
args: >
--no-progress
--exclude-path node_modules
--exclude localhost
--exclude reddit.com
--
**/README.md
packages/**/.dist/prod/
${{ env.LINKS }}
packages/nuejs.org/.dist/prod/
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 0239584

Please sign in to comment.