2023-08-25 21:35:44 +00:00
|
|
|
---
|
|
|
|
when:
|
|
|
|
- event: [pull_request, tag]
|
|
|
|
- event: [push, manual]
|
|
|
|
branch:
|
|
|
|
- ${CI_REPO_DEFAULT_BRANCH}
|
|
|
|
|
|
|
|
steps:
|
2023-12-22 11:00:02 +00:00
|
|
|
- name: eslint
|
2023-08-25 21:35:44 +00:00
|
|
|
image: docker.io/library/node:lts
|
|
|
|
commands:
|
2023-12-22 11:00:02 +00:00
|
|
|
- npm install --quiet --no-progress
|
2024-01-15 20:03:07 +00:00
|
|
|
- npm run lint:js
|
2023-08-25 21:35:44 +00:00
|
|
|
environment:
|
|
|
|
FORCE_COLOR: "true"
|
|
|
|
|
2023-12-22 11:00:02 +00:00
|
|
|
- name: assets
|
2023-08-25 21:35:44 +00:00
|
|
|
image: docker.io/library/node:lts
|
|
|
|
commands:
|
2023-12-22 11:00:02 +00:00
|
|
|
- npm install --quiet --no-progress
|
2023-08-25 21:35:44 +00:00
|
|
|
- npm run build
|
|
|
|
environment:
|
|
|
|
FORCE_COLOR: "true"
|
|
|
|
|
2023-12-22 11:00:02 +00:00
|
|
|
- name: testbuild
|
2024-03-21 07:48:21 +00:00
|
|
|
image: quay.io/thegeeklab/hugo:0.124.1
|
2023-08-25 21:35:44 +00:00
|
|
|
commands:
|
|
|
|
- mkdir -p exampleSite/themes/ && ln -s $(pwd)/ exampleSite/themes/${CI_REPO_NAME}
|
|
|
|
- hugo --panicOnWarning -s exampleSite/ -b http://localhost:8000/
|
|
|
|
|
2023-12-22 11:00:02 +00:00
|
|
|
- name: html-validation
|
2024-01-15 20:03:07 +00:00
|
|
|
image: docker.io/library/node:lts
|
2023-08-25 21:35:44 +00:00
|
|
|
group: test
|
|
|
|
commands:
|
2024-01-15 20:03:07 +00:00
|
|
|
- npm install --quiet --no-progress
|
|
|
|
- npm run lint:html
|
|
|
|
environment:
|
|
|
|
FORCE_COLOR: "true"
|
2023-08-25 21:35:44 +00:00
|
|
|
|
2024-04-07 20:07:49 +00:00
|
|
|
# - name: link-validation
|
|
|
|
# image: docker.io/lycheeverse/lychee
|
|
|
|
# group: test
|
|
|
|
# commands:
|
|
|
|
# - lychee --no-progress --format detailed exampleSite/content/ README.md
|
2023-08-25 21:35:44 +00:00
|
|
|
|
2023-12-22 11:00:02 +00:00
|
|
|
- name: page-validation
|
2024-01-15 19:56:18 +00:00
|
|
|
image: quay.io/thegeeklab/lhci:0.13
|
2023-08-25 21:35:44 +00:00
|
|
|
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}/
|