Skip to content

Commit

Permalink
add lychee
Browse files Browse the repository at this point in the history
  • Loading branch information
DarhkVoyd committed Mar 6, 2024
1 parent 34b7d8f commit 98dceb3
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/lychee.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Build and Check Links

on:
push:
branches:
- main

pull_request:
types: [opened, synchronize, reopened]

jobs:
build_and_serve:
runs-on: ubuntu-latest

steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
submodules: recursive

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'

- name: Install Dependencies
run: yarn install --frozen-lockfile

- name: Build Next.js App
run: yarn build

- name: Serve App Locally
run: yarn start &

- name: Wait for App to Start
run: sleep 20

linkChecker:
runs-on: ubuntu-latest
needs: build_and_serve
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
submodules: recursive

- name: Link Checker
uses: lycheeverse/[email protected]
with:
fail: true
args: '--base . --verbose --no-progress **/*.md'

0 comments on commit 98dceb3

Please sign in to comment.