Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 64 additions & 0 deletions .github/workflows/links.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
name: Check Links

on:
push:
branches:
- master
paths:
- '**/README.md'
- 'packages/www/**'
pull_request:
paths:
- '**/README.md'
- 'packages/www/**'
workflow_dispatch:

jobs:
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:
lycheeVersion: nightly
args: >
--no-progress
--include-fragments
--exclude-path "node_modules"
--exclude "localhost"
--root-dir "."
--
"**/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

- name: Build docs
uses: ./.github/workflows/repo/build-page
with:
root: packages/www/

# keep server running in background
- name: Run server
run: |
cd packages/www/
nue preview &

- name: Check site links
uses: lycheeverse/lychee-action@v2
with:
lycheeVersion: nightly
args: >
--no-progress
--include-fragments
--remap "http://localhost:4040/@ https://nuejs.org/@"
--
`find packages/www/.dist/ -name "*.html" -printf "http://localhost:4040/%P "`
token: ${{ secrets.GITHUB_TOKEN }}
78 changes: 0 additions & 78 deletions .github/workflows/links.yaml.disabled

This file was deleted.

6 changes: 4 additions & 2 deletions .github/workflows/repo/build-page/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,11 @@ runs:
shell: bash
run: |
bun install
cd packages/nuekit/
cd "packages/nuekit/"
bun link

- name: Build Nue Project
shell: bash
run: nue build -pr "${{ inputs.root }}"
run: |
cd "${{ inputs.root }}"
nue build