generated from int128/typescript-action
-
-
Notifications
You must be signed in to change notification settings - Fork 0
71 lines (64 loc) · 2.01 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
name: Integration Tests
on:
push:
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./
id: success
with:
file: tests/fixtures/gradle.properties
property: pluginName
- run: '[[ "TownyPlus" == "${{ steps.success.outputs.value }}" ]]'
- uses: ./
id: default
with:
file: tests/fixtures/gradle.properties
property: version
- run: '[[ "1.1.0-alpha.16" == "${{ steps.default.outputs.value }}" ]]'
- uses: ./
id: unexisting-property
with:
file: tests/fixtures/gradle.properties
property: name
default: Anakin Skywalker
- run: '[[ "Anakin Skywalker" == "${{ steps.unexisting-property.outputs.value }}" ]]'
- uses: ./
id: glob-test
with:
file: "**/*.properties"
property: author
default: Anakin Skywalker
- run: '[[ "Anakin Skywalker" == "${{ steps.glob-test.outputs.value }}" ]]'
- uses: ./
id: glob-test2
with:
file: "**/gradle.properties"
property: author
default: Anakin Skywalker
- run: '[[ "Romvnly" == "${{ steps.glob-test2.outputs.value }}" ]]'
- uses: ./
id: all
with:
file: tests/fixtures/gradle.properties
all: true
- run: '[[ "1.1.0-alpha.16" == "${{ steps.all.outputs.version }}" ]]'
- run: '[[ "1.16" == "${{ steps.all.outputs.apiVersion }}" ]]'
- run: '[[ "TownyPlus" == "${{ steps.all.outputs.pluginName }}" ]]'
- uses: ./
id: failure
with:
file: tests/fixtures/da.properties
property: name
continue-on-error: true
- run: '[[ "failure" == "${{ steps.failure.outcome }}" ]]'
- uses: ./
id: failure2
with:
file: tests/fixtures/trash.properties
property: good
continue-on-error: true
- run: '[[ "failure" == "${{ steps.failure2.outcome }}" ]]'