hugo-geekblog/.woodpecker/test.yml

55 lines
1.4 KiB
YAML
Raw Permalink 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:
- name: eslint
2023-08-25 21:35:44 +00:00
image: docker.io/library/node:lts
commands:
- npm install --quiet --no-progress
- npm run lint:js
2023-08-25 21:35:44 +00:00
environment:
FORCE_COLOR: "true"
- name: assets
2023-08-25 21:35:44 +00:00
image: docker.io/library/node:lts
2024-10-30 20:33:28 +00:00
depends_on: [eslint]
2023-08-25 21:35:44 +00:00
commands:
- npm install --quiet --no-progress
2023-08-25 21:35:44 +00:00
- npm run build
environment:
FORCE_COLOR: "true"
- name: testbuild
image: quay.io/thegeeklab/hugo:0.136.5
2024-10-30 20:33:28 +00:00
depends_on: [assets]
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/
- name: html-validation
image: docker.io/library/node:lts
2024-10-30 20:33:28 +00:00
depends_on: [testbuild]
2023-08-25 21:35:44 +00:00
commands:
- 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:46:19 +00:00
- name: link-validation
image: docker.io/lycheeverse/lychee
2024-10-30 20:33:28 +00:00
depends_on: [testbuild]
2024-04-07 20:46:19 +00:00
commands:
- lychee --no-progress --format detailed exampleSite/content/ README.md
2023-08-25 21:35:44 +00:00
- name: page-validation
image: quay.io/thegeeklab/lhci:0.14
2024-10-30 20:33:28 +00:00
depends_on: [testbuild]
2023-08-25 21:35:44 +00:00
commands:
- lhci autorun
environment:
2023-10-02 11:34:07 +00:00
LHCI_SERVER_URL: https://ci-artifact.rknet.org/${CI_REPO_NAME}/