Skip to content

Commit

Permalink
update website-lint job
Browse files Browse the repository at this point in the history
Signed-off-by: Rui Chen <rui@chenrui.dev>
  • Loading branch information
chenrui333 committed Dec 12, 2023
1 parent 35fe008 commit 9bd5133
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
filters: |
src:
- '**.js'
- 'yarn.lock'
- 'pnpm-lock.yaml'
- 'package.json'
- '.github/workflows/website.yml'
Expand All @@ -57,14 +57,15 @@ jobs:
# renovate: datasource=github-releases depName=raviqqe/muffet
MUFFET_VERSION: 2.6.3
run: |
npm install -g yarn
# http-server is used to serve the website locally as muffet checks it.
yarn global add http-server
# install raviqqe/muffet to check for broken links.
curl -L https://github.com/raviqqe/muffet/releases/download/v${MUFFET_VERSION}/muffet_${MUFFET_VERSION}_Linux_x86_64.tar.gz | tar -xz
yarn install
# build site
pnpm install
pnpm website:build
http-server runatlantis.io/.vuepress/dist &
# start http-server for integration testing
npx http-server runatlantis.io/.vuepress/dist &
- name: wait until server listened
run: curl --retry-delay 1 --retry 30 --retry-all-error http://localhost:8080
Expand Down

0 comments on commit 9bd5133

Please sign in to comment.