-
Notifications
You must be signed in to change notification settings - Fork 2
127 lines (117 loc) · 3.26 KB
/
test.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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
name: Test
on:
push:
branches-ignore:
- master
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./src/test/resources/
id: simple
with:
file: src/test/resources/test.properties
property: name
- uses: ./.github/actions/compare
with:
a: Darth Vader
b: ${{ steps.simple.outputs.value }}
- uses: ./src/test/resources/
id: multiline
with:
file: src/test/resources/test.properties
property: affiliation
- uses: ./.github/actions/compare
with:
a: |-
Galactic
Empire
b: ${{ steps.multiline.outputs.value }}
- uses: ./src/test/resources/
id: simple-default
with:
file: src/test/resources/test.properties
property: version
default: 1.0.0
- uses: ./.github/actions/compare
with:
a: 1.0.0
b: ${{ steps.simple-default.outputs.value }}
- uses: ./src/test/resources/
id: multiline-default
with:
file: src/test/resources/test.properties
property: version
default: |-
1
2
3
- uses: ./.github/actions/compare
with:
a: |-
1
2
3
b: ${{ steps.multiline-default.outputs.value }}
- uses: ./src/test/resources/
id: unexisting-file
with:
file: src/test/resources/unexisting.properties
property: name
default: Anakin Skywalker
- uses: ./.github/actions/compare
with:
a: Anakin Skywalker
b: ${{ steps.unexisting-file.outputs.value }}
- uses: ./src/test/resources/
id: all
with:
file: src/test/resources/test.properties
all: true
- uses: ./.github/actions/compare
with:
a: Darth Vader
b: ${{ steps.all.outputs.name }}
- uses: ./.github/actions/compare
with:
a: Sith Lord
b: ${{ steps.all.outputs.occupation }}
- uses: ./.github/actions/compare
with:
a: |-
Galactic
Empire
b: ${{ steps.all.outputs.affiliation }}
- uses: ./.github/actions/compare
with:
a: Luke Skywalker
b: ${{ steps.all.outputs.son }}
- uses: ./.github/actions/compare
with:
a: 1
b: ${{ steps.all.outputs.read-java-properties-delimiter }}
- uses: ./.github/actions/compare
with:
a: 2
b: ${{ steps.all.outputs.read-java-properties-delimiter-x }}
- uses: ./.github/actions/compare
with:
a: |-
3
4
b: ${{ steps.all.outputs.read-java-properties-delimiter-x-x }}
- uses: ./src/test/resources/
id: failure
with:
file: src/test/resources/unexisting.properties
property: name
continue-on-error: true
- run: '[[ "failure" == "${{ steps.failure.outcome }}" ]]'
actions-typing:
name: Validate actions typing
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: typesafegithub/github-actions-typing@v1