Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add link checking #3371

Merged
merged 11 commits into from
Feb 12, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .woodpecker/static.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
when:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe static-checks would be a bit more descriptive as filename

- event: pull_request
- event: push
branch: renovate/*

steps:
- name: lint-editorconfig
image: docker.io/mstruebing/editorconfig-checker:2.7.2
depends_on: []
when:
- event: pull_request
- event: push
branch: renovate/*

- name: spellcheck
image: docker.io/node:21-alpine
depends_on: []
commands:
- corepack enable
- pnpx cspell lint --no-progress --gitignore '{**,.*}/{*,.*}'

- name: prettier
image: docker.io/woodpeckerci/plugin-prettier:0.1.0
depends_on: []
settings:
version: 3.2.4

- name: links
image: lycheeverse/lychee
qwerty287 marked this conversation as resolved.
Show resolved Hide resolved
depends_on: []
commands:
- lychee pipeline/frontend/yaml/linter/schema/schema.json
- lychee docs/docs/
- lychee docs/src/pages/
23 changes: 0 additions & 23 deletions .woodpecker/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,36 +68,13 @@ steps:
- '[ -n "$DIFF" ] && { echo "swagger not up to date, exec `make generate-swagger` and commit"; exit 1; } || true'
when: *when

lint-editorconfig:
image: docker.io/mstruebing/editorconfig-checker:2.7.2
when:
- event: pull_request
- event: push
branch: renovate/*

lint-license-header:
image: *golang_image
commands:
- go install github.com/google/addlicense@latest
- 'addlicense -check -ignore "vendor/**" **/*.go'
when: *when

prettier:
image: docker.io/woodpeckerci/plugin-prettier:0.1.0
settings:
version: 3.2.4
when:
- event: pull_request
- event: push
branch: renovate/*

spellcheck:
image: docker.io/node:21-alpine
commands:
- corepack enable
- pnpx cspell lint --no-progress --gitignore '{**,.*}/{*,.*}'
when: *when

test:
depends_on:
- vendor
Expand Down
2 changes: 1 addition & 1 deletion pipeline/frontend/yaml/linter/schema/schema.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"title": "Woodpecker CI configuration file",
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://woodpecker-ci.org/schema/woodpecker.json",
"$id": "https://raw.githubusercontent.com/woodpecker-ci/woodpecker/main/pipeline/frontend/yaml/linter/schema/schema.json",
"description": "Schema of a Woodpecker pipeline file. Read more: https://woodpecker-ci.org/docs/usage/workflow-syntax",
"type": "object",
"required": ["steps"],
Expand Down