Add link checker and prettier (#49) All checks were successful ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
Adapted from WP main repo. Reviewed-on: #49 Co-authored-by: pat-s <patrick.schratz@gmail.com> Co-committed-by: pat-s <patrick.schratz@gmail.com>
This commit is contained in:
parent 531e0933a4
commit 5ffed3d2fa
21 changed files with 92 additions and 38 deletions
8 .prettierrc.json Normal file
8
.prettierrc.json Normal file | @ -0,0 +1,8 @@ | |||
{ | ||||
"semi": true, | ||||
"trailingComma": "all", | ||||
"singleQuote": true, | ||||
"printWidth": 120, | ||||
"tabWidth": 2, | ||||
"endOfLine": "lf" | ||||
} |
| @ -27,3 +27,15 @@ steps: | |||
image: cytopia/yamllint:alpine-1 | ||||
commands: | ||||
- yamllint --strict -c=.yamllint.yaml . | ||||
| ||||
link-checker: | ||||
image: lycheeverse/lychee:0.14.3 | ||||
depends_on: [] | ||||
commands: | ||||
- lychee . | ||||
| ||||
prettier: | ||||
image: docker.io/woodpeckerci/plugin-prettier:0.1.0 | ||||
depends_on: [] | ||||
settings: | ||||
version: 3.2.5 | ||||
| |
| @ -5,6 +5,7 @@ steps: | |||
# also runs on pull requests targeting these branch. | ||||
when: | ||||
branch: [master, dev] | ||||
event: [push, pull_request] | ||||
commands: | | ||||
# alpine uses build-base for dev utilies such as system headers, make etc. | ||||
apk add --no-cache build-base gcc >/dev/null | ||||
| |
| @ -14,6 +14,7 @@ steps: | |||
# also runs on pull requests targeting these branches. | ||||
when: | ||||
branch: [master, dev] | ||||
event: [push, pull_request] | ||||
commands: | | ||||
# Possible profiles: | ||||
# android-arm64-v8a.txt | ||||
| |
| @ -16,6 +16,7 @@ steps: | |||
# also runs on pull requests targeting these branches. | ||||
when: | ||||
branch: [master, dev] | ||||
event: [push, pull_request] | ||||
commands: | | ||||
mkdir build && cd build | ||||
meson .. | ||||
| |
| @ -5,6 +5,7 @@ | |||
| ||||
when: | ||||
branch: main | ||||
event: [push, pull_request] | ||||
| ||||
steps: | ||||
publish: | ||||
| @ -18,7 +19,7 @@ steps: | |||
password: | ||||
from_secret: docker_token | ||||
- registry: https://codeberg.org | ||||
username: "6543" | ||||
username: '6543' | ||||
password: | ||||
from_secret: cb_token | ||||
- registry: https://<account-id>.dkr.ecr.<region>.amazonaws.com | ||||
| |
| @ -8,6 +8,7 @@ | |||
| ||||
when: | ||||
branch: main | ||||
event: [push, pull_request] | ||||
| ||||
variables: | ||||
- &file Dockerfile.hello | ||||
| |
| @ -6,6 +6,8 @@ | |||
| ||||
steps: | ||||
publish-docker-image: | ||||
when: | ||||
event: [push, pull_request] | ||||
image: plugins/kaniko | ||||
settings: | ||||
repo: sample/image | ||||
| |
| @ -1,6 +1,8 @@ | |||
steps: | ||||
# Builds your Go application | ||||
build: | ||||
when: | ||||
event: [push, pull_request] | ||||
image: golang | ||||
environment: | ||||
# Needed if you want to cross-compile and package the binary in a container. | ||||
| @ -15,6 +17,8 @@ steps: | |||
| ||||
# Runs a dryrun to build the docker container | ||||
dryrun-docker: | ||||
when: | ||||
event: [push, pull_request] | ||||
image: plugins/kaniko | ||||
settings: | ||||
repo: DOCKERUSERNAME/DOCKERHUBREPO | ||||
| @ -22,11 +26,12 @@ steps: | |||
dockerfile: Dockerfile | ||||
# Just builds the container without a push to DockerHub. | ||||
no_push: true | ||||
when: | ||||
event: pull_request | ||||
| ||||
# Builds and publishes a docker container to DockerHub from the main-branch | ||||
publish-docker-latest: | ||||
when: | ||||
branch: main | ||||
event: [push] | ||||
image: plugins/kaniko | ||||
settings: | ||||
repo: DOCKERUSERNAME/DOCKERHUBREPO | ||||
| @ -38,13 +43,14 @@ steps: | |||
password: | ||||
# Secret 'docker_password' needs to be set in the CI settings | ||||
from_secret: docker_password | ||||
when: | ||||
# Push new version of tag latest if new push on main-branch | ||||
event: push | ||||
branch: main | ||||
| ||||
# Builds and publishes a docker container of a tag | ||||
publish-docker-tag: | ||||
when: | ||||
# Push new version when version tag is created | ||||
event: tag | ||||
ref: refs/tags/v* | ||||
branch: main | ||||
image: plugins/kaniko | ||||
settings: | ||||
repo: DOCKERUSERNAME/DOCKERHUBREPO | ||||
| @ -57,7 +63,3 @@ steps: | |||
password: | ||||
# Secret 'docker_password' needs to be set in the CI settings | ||||
from_secret: docker_password | ||||
when: | ||||
# Push new version when version tag is created | ||||
event: tag | ||||
ref: refs/tags/v* | ||||
| |
| @ -1,5 +1,7 @@ | |||
steps: | ||||
build: | ||||
when: | ||||
event: [push, pull_request] | ||||
image: golang | ||||
commands: | ||||
- go get | ||||
| |
| @ -15,6 +15,7 @@ | |||
when: | ||||
branch: | ||||
exclude: pages | ||||
event: [push, pull_request] | ||||
| ||||
# Recursive cloning is used to fully clone the themes given as Git submodules | ||||
clone: | ||||
| |
| @ -21,6 +21,8 @@ | |||
| ||||
steps: | ||||
build: | ||||
when: | ||||
event: [push, pull_request] | ||||
# Use the official jekyll build container | ||||
image: jekyll/jekyll | ||||
secrets: [cbtoken, cbmail] | ||||
| |
| @ -28,6 +28,8 @@ | |||
steps: | ||||
# kibot creates the files | ||||
kibot: | ||||
when: | ||||
event: [push, pull_request] | ||||
image: ghcr.io/inti-cmnb/kicad7_auto_full:latest | ||||
commands: | ||||
# you just need to run "kibot". If your pcb is in a | ||||
| @ -37,6 +39,8 @@ steps: | |||
| ||||
# gitea package stores the resulting file as a package | ||||
artifacts: | ||||
when: | ||||
event: [push, pull_request] | ||||
image: gurken2108/drone-gitea-package | ||||
settings: | ||||
user: | ||||
| |
| @ -14,49 +14,49 @@ preflight: | |||
# you can use this to raise errors in DRC or ERC | ||||
| ||||
outputs: | ||||
- name: "gerbers" | ||||
comment: "Gerbers for production" | ||||
- name: 'gerbers' | ||||
comment: 'Gerbers for production' | ||||
type: gerber | ||||
dir: kibot/gerber | ||||
layers: | ||||
- "copper" | ||||
- "technical" | ||||
- 'copper' | ||||
- 'technical' | ||||
| ||||
- name: "gerber-drill" | ||||
comment: "Drill positions for production" | ||||
type: "gerb_drill" | ||||
- name: 'gerber-drill' | ||||
comment: 'Drill positions for production' | ||||
type: 'gerb_drill' | ||||
dir: kibot/gerber | ||||
| ||||
- name: "gerber-compressed" | ||||
comment: "compressing the gerbers into one convenient file" | ||||
- name: 'gerber-compressed' | ||||
comment: 'compressing the gerbers into one convenient file' | ||||
type: compress | ||||
dir: kibot | ||||
options: | ||||
files: | ||||
- from_output: "gerbers" | ||||
- from_output: 'gerbers' | ||||
dest: / | ||||
- from_output: "gerber-drill" | ||||
- from_output: 'gerber-drill' | ||||
dest: / | ||||
| ||||
- name: "ibom" | ||||
type: "ibom" | ||||
comment: "ibom for your convenience" | ||||
- name: 'ibom' | ||||
type: 'ibom' | ||||
comment: 'ibom for your convenience' | ||||
dir: kibot | ||||
| ||||
- name: "schematic-pdf" | ||||
comment: "schematic for your convenience" | ||||
type: "pdf_sch_print" | ||||
- name: 'schematic-pdf' | ||||
comment: 'schematic for your convenience' | ||||
type: 'pdf_sch_print' | ||||
dir: kibot | ||||
| ||||
- name: "production-files" | ||||
comment: "compressing all the generated files for easy downloading" | ||||
- name: 'production-files' | ||||
comment: 'compressing all the generated files for easy downloading' | ||||
type: compress | ||||
dir: kibot | ||||
options: | ||||
files: | ||||
- from_output: "gerber-compressed" | ||||
- from_output: 'gerber-compressed' | ||||
dest: / | ||||
- from_output: "ibom" | ||||
- from_output: 'ibom' | ||||
dest: / | ||||
- from_output: "schematic-pdf" | ||||
- from_output: 'schematic-pdf' | ||||
dest: / | ||||
| |
| @ -23,6 +23,8 @@ | |||
| ||||
steps: | ||||
build: | ||||
when: | ||||
event: [push, pull_request] | ||||
# Use the official jekyll build container | ||||
image: node | ||||
secrets: [cbtoken, cbmail, cbusername, sourcerepo, destrepo] | ||||
| |
| @ -4,6 +4,8 @@ | |||
| ||||
steps: | ||||
build-docs: | ||||
when: | ||||
event: [push, pull_request] | ||||
# build the docs with mkdocs and add the .domains file for codeberg pages | ||||
image: squidfunk/mkdocs-material | ||||
commands: | ||||
| @ -11,6 +13,8 @@ steps: | |||
- echo -e '<yourtld.com>\n<codeberg_username>.codeberg.page\npages.<codeberg_username>.codeberg.page' > site/.domains | ||||
| ||||
deploy-docs: | ||||
when: | ||||
event: [push, pull_request] | ||||
image: codeberg.org/xfix/plugin-codeberg-pages-deploy:1 | ||||
settings: | ||||
folder: site | ||||
| |
| @ -9,7 +9,9 @@ | |||
# Alternatively, the rcmdcheck package can be installed and use in replacement to `R CMD check``. | ||||
| ||||
steps: | ||||
"Check package": | ||||
'Check package': | ||||
when: | ||||
event: [push, pull_request] | ||||
image: rocker/r-base | ||||
secrets: [github_pat] | ||||
commands: | ||||
| |
| @ -10,8 +10,8 @@ Pull requests are welcome! | |||
| [C/.woodpecker/meson-android.yaml](C/.woodpecker/meson-android.yaml) | C/C++ | meson + Android NDK | CI for meson-based projects cross-compiling to Android NDK. | | ||||
| [Docker/.woodpecker/kaniko.yaml](Docker/.woodpecker/kaniko.yaml) | Dockerfile | [Kaniko][1] | Minimalistic CI pipeline with clear instructions to push a Docker image | | ||||
| [Docker/.woodpecker/buildx.yaml](Docker/.woodpecker/buildx.yaml) | Dockerfile | [buildx][2] | Build and publish Docker images for multiple architectures on codeberg | | ||||
| [golang/.woodpecker/build.yaml](golang/.woodpecker/build.yaml) | golang | golang | Simple ci for building and test a Go project | | ||||
| [golang/.woodpecker/build-docker.yaml](golang/.woodpecker/build-docker.yaml) | golang | golang / kaniko | CI to build golang project and build various docker container and publish them on DockerHub | | ||||
| [Golang/.woodpecker/build.yaml](Golang/.woodpecker/build.yaml) | golang | golang | Simple ci for building and test a Go project | | ||||
| [Golang/.woodpecker/build-docker.yaml](Golang/.woodpecker/build-docker.yaml) | golang | golang / kaniko | CI to build golang project and build various docker container and publish them on DockerHub | | ||||
| [KiCad/.woodpecker.yaml](KiCad/.woodpecker.yaml) | --- | KiBot | Building gerber files, ibom and a pdf schematic as an example for KiBot use | | ||||
| [NodeJS/.woodpecker.yaml](NodeJS/.woodpecker.yaml) | JavaScript | NodeJS | CI to build static websites files and publish them to Codeberg Pages with 11ty | | ||||
| [Tectonic/.woodpecker.yaml](Tectonic/.woodpecker.yaml) | LaTeX | Tectonic | Builds a TeX file and pushes the resulting PDF file to a given repository. | | ||||
| |
| @ -3,6 +3,8 @@ matrix: | |||
| ||||
steps: | ||||
test: | ||||
when: | ||||
event: [push, pull_request] | ||||
image: rust | ||||
environment: [CARGO_TERM_COLOR=always] | ||||
commands: | ||||
| |
| @ -21,6 +21,8 @@ | |||
| ||||
steps: | ||||
build: | ||||
when: | ||||
event: [push, pull_request] | ||||
image: dxjoke/tectonic-docker | ||||
environment: | ||||
- TEX_FOLDER=docs | ||||
| @ -28,6 +30,9 @@ steps: | |||
commands: | ||||
- tectonic -r 1 $TEX_FOLDER/$TEX_FILENAME.tex | ||||
deploy: | ||||
when: | ||||
branch: main | ||||
event: [push, pull_request] | ||||
image: alpine/git | ||||
environment: | ||||
- TEX_FOLDER=docs | ||||
| @ -54,5 +59,3 @@ steps: | |||
- git add $PDF_FOLDER/$PDF_FILENAME.pdf | ||||
- git commit -m "Woodpecker CI LaTeX Build at $( env TZ=Europe/Berlin date + "%Y-%m-%d %X %Z" )" | ||||
- git push | ||||
when: | ||||
branch: main | ||||
| |
| @ -21,6 +21,8 @@ | |||
| ||||
steps: | ||||
build: | ||||
when: | ||||
event: [push, pull_request] | ||||
image: 123marvin123/typst | ||||
environment: | ||||
- TYPST_FOLDER=docs | ||||
| @ -56,3 +58,4 @@ steps: | |||
- git push | ||||
when: | ||||
branch: main | ||||
event: [push, pull_request] | ||||
| |
Loading…
Add table
Add a link
Reference in a new issue