Skip to content

Commit d9f61c1

Browse files
committed
template test
1 parent 0284382 commit d9f61c1

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

.github/workflows/vhs-template.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: vhs template
2+
3+
on:
4+
workflow_call:
5+
inputs:
6+
topic:
7+
required: true
8+
type: string
9+
10+
jobs:
11+
word:
12+
runs-on: ubuntu-latest
13+
container: ghcr.io/carapace-sh/carapace
14+
needs: build
15+
steps:
16+
- name: shallow clone
17+
uses: actions/checkout@v4
18+
19+
- uses: actions/download-artifact@v4
20+
with:
21+
name: example
22+
path: /usr/local/bin/
23+
24+
- run: chmod +x /usr/local/bin/example
25+
26+
- name: word
27+
run: |
28+
cd docs/src/development/vhs/${{ inputs.topic }}
29+
ls *.tape | xargs -n1 vhs

.github/workflows/vhs.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,13 @@ jobs:
2727
path: example/example
2828
retention-days: 1
2929

30+
31+
template-test:
32+
uses: ./.github/workflows/vhs-template.yml
33+
with:
34+
topic: word
35+
36+
3037
word:
3138
runs-on: ubuntu-latest
3239
container: ghcr.io/carapace-sh/carapace

0 commit comments

Comments
 (0)