File tree 3 files changed +30
-2
lines changed
3 files changed +30
-2
lines changed Original file line number Diff line number Diff line change
1
+ name : Doc links
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - " *"
7
+ pull_request :
8
+
9
+ jobs :
10
+ link_check :
11
+ runs-on : ubuntu-latest
12
+ steps :
13
+ - uses : actions/checkout@v3
14
+ - uses : actions/setup-node@v3
15
+ with :
16
+ node-version : 18
17
+ - name : Asciidoc-link-checker
18
+ run : npm install -g asciidoc-link-check
19
+ - name : Run asciidoc-link-check
20
+ run : |
21
+ git clone https://github.com/${{ github.repository_owner }}/faas-bb.git
22
+ cd faas-bb
23
+ git checkout ${{ github.head_ref || github.ref_name }}
24
+ find . -name '*.adoc' -exec sh -c 'asciidoc-link-check -p "{}" || echo "error"' \; | grep -q "error" && exit 1 || exit 0
Original file line number Diff line number Diff line change 29
29
DOCKER_REGISTRY_IMG_ORG_PATH : ghcr.io/${{ github.repository_owner }}
30
30
run : |
31
31
git clone https://github.com/${{ github.repository_owner }}/faas-bb.git
32
- cd faas-bb/examples
32
+ cd faas-bb
33
33
git checkout ${{ github.head_ref || github.ref_name }}
34
+ cd examples
34
35
faas template pull https://github.com/${{ github.repository_owner }}/faas-bb#${{ github.head_ref || github.ref_name }}
35
36
faas build
36
37
if [ "$(echo world | docker run -i ghcr.io/${{ github.repository_owner }}/bb-hello:latest ./index.clj)" != "Hello, world" ]; then
Original file line number Diff line number Diff line change 2
2
:img-ci-tests-status: {url-proj}/actions/workflows/faas_fn_build_invoke.yml/badge.svg
3
3
:img-ci-hadolint-status: {url-proj}/actions/workflows/hadolint.yml/badge.svg
4
4
:img-ci-clj-kondo-status: {url-proj}/actions/workflows/clj-kondo.yml/badge.svg
5
+ :img-ci-lychee-link-check-status: {url-proj}/actions/workflows/broken-link-checker.yml/badge.svg
5
6
:url-ci-status-tests: "{url-proj}/actions/workflows/faas_fn_build_invoke.yml"
6
7
:url-ci-status-hadolint: "{url-proj}/actions/workflows/hadolint.yml"
7
8
:url-ci-status-clj-kondo: "{url-proj}/actions/workflows/clj-kondo.yml"
9
+ :url-ci-status-lychee-link: "{url-proj}/actions/workflows/broken-link-checker.yml"
8
10
:img-license: https://img.shields.io/badge/license-MIT-black.svg
9
11
10
12
= OpenFaaS Babashka template =
11
13
12
14
image:{img-ci-tests-status}[link={url-ci-status-tests}]
13
15
image:{img-ci-hadolint-status}[link={url-ci-status-hadolint}]
14
16
image:{img-ci-clj-kondo-status}[link={url-ci-status-clj-kondo}]
17
+ image:{img-ci-lychee-link-check-status}[link={url-ci-status-lychee-link}]
15
18
image:{img-license}[link=LICENSE]
16
19
17
20
An https://github.com/openfaas[OpenFaaS] template for writing Functions in https://github.com/babashka/babashka[Babashka].
@@ -47,7 +50,7 @@ A new project is created for a function defined as `my-bb-function`. It will con
47
50
48
51
OpenFaaS watchdog is `of-watchdog` in https://github.com/openfaas/of-watchdog#3-streaming-fork-modestreaming---default[Streaming fork] mode.
49
52
50
- == link:function- examples[Function examples] ==
53
+ == link:examples[Function examples] ==
51
54
52
55
See the link:examples[examples] directory to find a fully working set of OpenFaaS Functions written in Babashka.
53
56
You can’t perform that action at this time.
0 commit comments