hugo-geekblog/.woodpecker/test.yml

52 lines
1.3 KiB
YAML
Raw Normal View History

2023-08-25 21:35:44 +00:00
---
when:
- event: [pull_request, tag]
- event: [push, manual]
branch:
- ${CI_REPO_DEFAULT_BRANCH}
steps:
eslint:
image: docker.io/library/node:lts
commands:
- npm install > /dev/null
- npm run lint
environment:
FORCE_COLOR: "true"
NPM_CONFIG_LOGLEVEL: error
assets:
image: docker.io/library/node:lts
commands:
- npm install > /dev/null
- npm run build
environment:
FORCE_COLOR: "true"
NPM_CONFIG_LOGLEVEL: error
testbuild:
image: quay.io/thegeeklab/hugo:0.115.2
commands:
- mkdir -p exampleSite/themes/ && ln -s $(pwd)/ exampleSite/themes/${CI_REPO_NAME}
- hugo --panicOnWarning -s exampleSite/ -b http://localhost:8000/
html-validation:
image: quay.io/thegeeklab/vnu
group: test
commands:
- vnu --skip-non-html --also-check-css --errors-only --filterfile .vnuignore exampleSite/public
link-validation:
2023-09-27 19:52:47 +00:00
image: docker.io/lycheeverse/lychee
2023-08-25 21:35:44 +00:00
group: test
commands:
2023-09-27 19:52:47 +00:00
- lychee --no-progress --format detailed exampleSite/content/ README.md
2023-08-25 21:35:44 +00:00
page-validation:
image: quay.io/thegeeklab/lhci:0.12
group: test
commands:
- lhci autorun
environment:
2023-10-02 11:34:07 +00:00
LHCI_SERVER_URL: https://ci-artifact.rknet.org/${CI_REPO_NAME}/