Add spell checking step to the CI

This commit is contained in:
daudix
2024-07-07 19:07:41 +03:00
parent 9ff2d6c316
commit 54366fecd3

View File

@ -11,6 +11,18 @@ clone:
recursive: true
steps:
# Check for typos
typos:
image: alpine:edge
commands:
- apk add curl jq
- curl -s "https://api.github.com/repos/crate-ci/typos/releases/latest" | jq -r '.assets[] | select(.name | contains("unknown-linux-musl")) | .browser_download_url' | xargs -n 1 curl -L -o typos.tar.gz
- tar -zxvf typos.tar.gz ./typos
- ./typos
failure: ignore
when:
event: [push, pull_request, manual]
# Build Zola static files
build:
image: alpine:edge