-
Notifications
You must be signed in to change notification settings - Fork 2
/
Earthfile
42 lines (28 loc) · 1.08 KB
/
Earthfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
VERSION 0.8
IMPORT github.com/input-output-hk/catalyst-ci/earthly/mdlint:v3.1.24 AS mdlint-ci
IMPORT github.com/input-output-hk/catalyst-ci/earthly/cspell:v3.1.24 AS cspell-ci
FROM debian:stable-slim
# cspell: words livedocs sitedocs
# check-markdown : markdown check using catalyst-ci.
check-markdown:
DO mdlint-ci+CHECK
# markdown-check-fix : markdown check and fix using catalyst-ci.
markdown-check-fix:
LOCALLY
DO mdlint-ci+MDLINT_LOCALLY --src=$(echo ${PWD}) --fix=--fix
# check-spelling : Check spelling in this repo inside a container.
check-spelling:
DO cspell-ci+CHECK
# spell-list-words : List words in a dictionary
spell-list-words:
FROM ghcr.io/streetsidesoftware/cspell:8.0.0
WORKDIR /work
COPY . .
RUN cspell-cli --words-only --unique "wasm/**" | sort -f
# repo-docs : target to store the documentation from the root of the repo.
repo-docs:
# Create artifacts of extra files we embed inside the documentation when its built.
FROM scratch
WORKDIR /repo
COPY --dir *.md LICENSE-APACHE LICENSE-MIT .
SAVE ARTIFACT /repo repo