mirror of
https://github.com/thegeeklab/hugo-geekblog.git
synced 2024-11-15 17:50:40 +00:00
061087b3fa
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
50 lines
1.3 KiB
YAML
50 lines
1.3 KiB
YAML
---
|
|
when:
|
|
- event: [pull_request, tag]
|
|
- event: [push, manual]
|
|
branch:
|
|
- ${CI_REPO_DEFAULT_BRANCH}
|
|
|
|
steps:
|
|
- name: eslint
|
|
image: docker.io/library/node:lts
|
|
commands:
|
|
- npm install --quiet --no-progress
|
|
- npm run lint
|
|
environment:
|
|
FORCE_COLOR: "true"
|
|
|
|
- name: assets
|
|
image: docker.io/library/node:lts
|
|
commands:
|
|
- npm install --quiet --no-progress
|
|
- npm run build
|
|
environment:
|
|
FORCE_COLOR: "true"
|
|
|
|
- name: testbuild
|
|
image: quay.io/thegeeklab/hugo:0.121.2
|
|
commands:
|
|
- mkdir -p exampleSite/themes/ && ln -s $(pwd)/ exampleSite/themes/${CI_REPO_NAME}
|
|
- hugo --panicOnWarning -s exampleSite/ -b http://localhost:8000/
|
|
|
|
- name: html-validation
|
|
image: quay.io/thegeeklab/vnu
|
|
group: test
|
|
commands:
|
|
- vnu --skip-non-html --also-check-css --errors-only --filterfile .vnuignore exampleSite/public
|
|
|
|
- name: link-validation
|
|
image: docker.io/lycheeverse/lychee
|
|
group: test
|
|
commands:
|
|
- lychee --no-progress --format detailed exampleSite/content/ README.md
|
|
|
|
- name: page-validation
|
|
image: quay.io/thegeeklab/lhci:0.12
|
|
group: test
|
|
commands:
|
|
- lhci autorun
|
|
environment:
|
|
LHCI_SERVER_URL: https://ci-artifact.rknet.org/${CI_REPO_NAME}/
|