-
-
Notifications
You must be signed in to change notification settings - Fork 3
66 lines (59 loc) · 1.7 KB
/
main.yml
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: E2E Tests
on:
push:
workflow_dispatch:
jobs:
test_job:
name: Single Doc
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: yamler
uses: ./
id: yamler
with:
yaml-file: "__tests__/test.yaml"
# Use the output from the yamler step
- name: Output Test
run: |
echo "${{ steps.yamler.outputs.yaml }}"
echo "${{ steps.yamler.outputs.what_it_is }}"
echo "${{ steps.yamler.outputs.yaml_resources__yaml_1_2_3rd_edition }}"
test_multidoc_job:
name: Multi Doc
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: yamler
uses: ./
id: yamler
with:
yaml-file: "__tests__/test-multidoc.yaml"
multidoc: true
# Use the output from the yamler step
- name: Output Test
run: |
echo "${{ steps.yamler.outputs.doc0__name }}"
echo "${{ steps.yamler.outputs.doc0__purpose }}"
test_front_matter_job:
name: Front Matter
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: yamler
uses: ./
id: yamler
with:
yaml-file: "__tests__/front-matter.md"
multidoc: true
# Use the output from the yamler step
- name: Output Test
run: |
echo "${{ steps.yamler.outputs.doc0__title }}"
echo "${{ steps.yamler.outputs.doc0__permalink }}"
echo "${{ steps.yamler.outputs.doc0__redirect_from }}"
echo "${{ steps.yamler.outputs.doc0__reviewed_on }}"
echo "${{ steps.yamler.outputs.doc0__reviewed_by }}"