Add spell checking step to the CI
This commit is contained in:
@ -11,6 +11,18 @@ clone:
|
|||||||
recursive: true
|
recursive: true
|
||||||
|
|
||||||
steps:
|
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 Zola static files
|
||||||
build:
|
build:
|
||||||
image: alpine:edge
|
image: alpine:edge
|
||||||
|
Reference in New Issue
Block a user