2023-08-25 12:37:28 +02:00
|
|
|
---
|
|
|
|
when:
|
|
|
|
- event: [pull_request, tag]
|
|
|
|
- event: [push, manual]
|
|
|
|
branch:
|
|
|
|
- ${CI_REPO_DEFAULT_BRANCH}
|
|
|
|
|
|
|
|
steps:
|
2023-12-22 12:00:05 +01:00
|
|
|
- name: eslint
|
2023-08-25 12:37:28 +02:00
|
|
|
image: docker.io/library/node:lts
|
|
|
|
commands:
|
2023-12-22 12:00:05 +01:00
|
|
|
- npm install --quiet --no-progress
|
2023-08-25 12:37:28 +02:00
|
|
|
- npm run lint
|
|
|
|
environment:
|
|
|
|
FORCE_COLOR: "true"
|
|
|
|
|
2023-12-22 12:00:05 +01:00
|
|
|
- name: assets
|
2023-08-25 12:37:28 +02:00
|
|
|
image: docker.io/library/node:lts
|
|
|
|
commands:
|
2023-12-22 12:00:05 +01:00
|
|
|
- npm install --quiet --no-progress
|
2023-08-25 12:37:28 +02:00
|
|
|
- npm run build
|
|
|
|
environment:
|
|
|
|
FORCE_COLOR: "true"
|
|
|
|
|
2023-12-22 12:00:05 +01:00
|
|
|
- name: testbuild
|
2023-08-25 12:37:28 +02:00
|
|
|
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/
|
|
|
|
|
2023-12-22 12:00:05 +01:00
|
|
|
- name: html-validation
|
2023-08-25 12:37:28 +02:00
|
|
|
image: quay.io/thegeeklab/vnu
|
2023-08-25 23:16:59 +02:00
|
|
|
group: test
|
2023-08-25 12:37:28 +02:00
|
|
|
commands:
|
|
|
|
- vnu --skip-non-html --also-check-css --errors-only --filterfile .vnuignore exampleSite/public
|
|
|
|
|
2023-12-22 12:00:05 +01:00
|
|
|
- name: link-validation
|
2023-09-27 21:52:48 +02:00
|
|
|
image: docker.io/lycheeverse/lychee
|
2023-08-25 23:16:59 +02:00
|
|
|
group: test
|
2023-08-25 12:37:28 +02:00
|
|
|
commands:
|
2023-09-27 21:52:48 +02:00
|
|
|
- lychee --no-progress --format detailed exampleSite/content/ README.md
|
2023-08-25 12:37:28 +02:00
|
|
|
|
2023-12-22 12:00:05 +01:00
|
|
|
- name: page-validation
|
2023-08-25 23:16:59 +02:00
|
|
|
image: quay.io/thegeeklab/lhci:0.12
|
|
|
|
group: test
|
2023-08-25 12:37:28 +02:00
|
|
|
commands:
|
|
|
|
- lhci autorun
|
|
|
|
environment:
|
2023-10-02 13:34:13 +02:00
|
|
|
LHCI_SERVER_URL: https://ci-artifact.rknet.org/${CI_REPO_NAME}/
|