generated from actions/typescript-action
-
Notifications
You must be signed in to change notification settings - Fork 3
145 lines (135 loc) · 7.84 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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
name: "build-test"
on:
pull_request:
push:
branches:
- master
- "releases/*"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: npm install
- run: npm run all
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./
id: Verson
with:
proj-path: __tests__/testdata/version.xml
- name: check Verson
run: |
test "${{steps.Verson.outputs.version}}" = "2.0.0-beta.1" # version
test "${{steps.Verson.outputs.version-prefix}}" = "2.0.0" # version-prefix
test "${{steps.Verson.outputs.version-suffix}}" = "beta.1" # version-suffix
test "${{steps.Verson.outputs.package-version}}" = "2.0.0-beta.1" # package-version
test "${{steps.Verson.outputs.assembly-version}}" = "2.0.0" # assembly-version
test "${{steps.Verson.outputs.file-version}}" = "2.0.0" # file-version
test "${{steps.Verson.outputs.informational-version}}" = "2.0.0-beta.1" # informational-version
- uses: ./
id: VersonPrefix
with:
proj-path: __tests__/testdata/version_prefix.xml
- name: check VersonPrefix
run: |
test "${{steps.VersonPrefix.outputs.version}}" = "3.4.2" # version
test "${{steps.VersonPrefix.outputs.version-prefix}}" = "3.4.2" # version-prefix
test "${{steps.VersonPrefix.outputs.version-suffix}}" = "" # version-suffix
test "${{steps.VersonPrefix.outputs.package-version}}" = "3.4.2" # package-version
test "${{steps.VersonPrefix.outputs.assembly-version}}" = "3.4.2" # assembly-version
test "${{steps.VersonPrefix.outputs.file-version}}" = "3.4.2" # file-version
test "${{steps.VersonPrefix.outputs.informational-version}}" = "3.4.2" # informational-version
- uses: ./
id: VersonSuffix
with:
proj-path: __tests__/testdata/version_suffix.xml
- name: check VersonSuffix
run: |
test "${{steps.VersonSuffix.outputs.version}}" = "1.0.0-alpha.2" # version
test "${{steps.VersonSuffix.outputs.version-prefix}}" = "1.0.0" # version-prefix
test "${{steps.VersonSuffix.outputs.version-suffix}}" = "alpha.2" # version-suffix
test "${{steps.VersonSuffix.outputs.package-version}}" = "1.0.0-alpha.2" # package-version
test "${{steps.VersonSuffix.outputs.assembly-version}}" = "1.0.0" # assembly-version
test "${{steps.VersonSuffix.outputs.file-version}}" = "1.0.0" # file-version
test "${{steps.VersonSuffix.outputs.informational-version}}" = "1.0.0-alpha.2" # informational-version
- uses: ./
id: VersonPrefix-VersonSuffix
with:
proj-path: __tests__/testdata/version_prefix_suffix.xml
- name: check VersonPrefix-VersonSuffix
run: |
test "${{steps.VersonPrefix-VersonSuffix.outputs.version}}" = "2.0.0-beta.1" # version
test "${{steps.VersonPrefix-VersonSuffix.outputs.version-prefix}}" = "2.0.0" # version-prefix
test "${{steps.VersonPrefix-VersonSuffix.outputs.version-suffix}}" = "beta.1" # version-suffix
test "${{steps.VersonPrefix-VersonSuffix.outputs.package-version}}" = "2.0.0-beta.1" # package-version
test "${{steps.VersonPrefix-VersonSuffix.outputs.assembly-version}}" = "2.0.0" # assembly-version
test "${{steps.VersonPrefix-VersonSuffix.outputs.file-version}}" = "2.0.0" # file-version
test "${{steps.VersonPrefix-VersonSuffix.outputs.informational-version}}" = "2.0.0-beta.1" # informational-version
- uses: ./
id: Verson-VersonPrefix-VersonSuffix
with:
proj-path: __tests__/testdata/version_with_prefix_suffix.xml
- name: check Verson-VersonPrefix-VersonSuffix
run: |
test "${{steps.Verson-VersonPrefix-VersonSuffix.outputs.version}}" = "2.0.0-beta.1" # version
test "${{steps.Verson-VersonPrefix-VersonSuffix.outputs.version-prefix}}" = "2.0.0" # version-prefix
test "${{steps.Verson-VersonPrefix-VersonSuffix.outputs.version-suffix}}" = "beta.1" # version-suffix
test "${{steps.Verson-VersonPrefix-VersonSuffix.outputs.package-version}}" = "2.0.0-beta.1" # package-version
test "${{steps.Verson-VersonPrefix-VersonSuffix.outputs.assembly-version}}" = "2.0.0" # assembly-version
test "${{steps.Verson-VersonPrefix-VersonSuffix.outputs.file-version}}" = "2.0.0" # file-version
test "${{steps.Verson-VersonPrefix-VersonSuffix.outputs.informational-version}}" = "2.0.0-beta.1" # informational-version
- uses: ./
id: PackageVersion
with:
proj-path: __tests__/testdata/package_version.xml
- name: check PackageVersion
run: |
test "${{steps.PackageVersion.outputs.version}}" = "2.0.0-beta.1" # version
test "${{steps.PackageVersion.outputs.version-prefix}}" = "2.0.0" # version-prefix
test "${{steps.PackageVersion.outputs.version-suffix}}" = "beta.1" # version-suffix
test "${{steps.PackageVersion.outputs.package-version}}" = "2.0.0-beta-1.1" # package-version
test "${{steps.PackageVersion.outputs.assembly-version}}" = "2.0.0" # assembly-version
test "${{steps.PackageVersion.outputs.file-version}}" = "2.0.0" # file-version
test "${{steps.PackageVersion.outputs.informational-version}}" = "2.0.0-beta.1" # informational-version
- uses: ./
id: AssemblyVersion
with:
proj-path: __tests__/testdata/assembly_version.xml
- name: check AssemblyVersion
run: |
test "${{steps.AssemblyVersion.outputs.version}}" = "2.0.0-beta.1" # version
test "${{steps.AssemblyVersion.outputs.version-prefix}}" = "2.0.0" # version-prefix
test "${{steps.AssemblyVersion.outputs.version-suffix}}" = "beta.1" # version-suffix
test "${{steps.AssemblyVersion.outputs.package-version}}" = "2.0.0-beta.1" # package-version
test "${{steps.AssemblyVersion.outputs.assembly-version}}" = "2.0.0.227" # assembly-version
test "${{steps.AssemblyVersion.outputs.file-version}}" = "2.0.0.227" # file-version
test "${{steps.AssemblyVersion.outputs.informational-version}}" = "2.0.0-beta.1" # informational-version
- uses: ./
id: FileVersion
with:
proj-path: __tests__/testdata/file_version.xml
- name: check FileVersion
run: |
test "${{steps.FileVersion.outputs.version}}" = "2.0.0-beta.1" # version
test "${{steps.FileVersion.outputs.version-prefix}}" = "2.0.0" # version-prefix
test "${{steps.FileVersion.outputs.version-suffix}}" = "beta.1" # version-suffix
test "${{steps.FileVersion.outputs.package-version}}" = "2.0.0-beta.1" # package-version
test "${{steps.FileVersion.outputs.assembly-version}}" = "2.0.0" # assembly-version
test "${{steps.FileVersion.outputs.file-version}}" = "2.0.0.21" # file-version
test "${{steps.FileVersion.outputs.informational-version}}" = "2.0.0-beta.1" # informational-version
- uses: ./
id: Informational
with:
proj-path: __tests__/testdata/informational_version.xml
- name: check Informational
run: |
test "${{steps.Informational.outputs.version}}" = "2.0.0-beta.1" # version
test "${{steps.Informational.outputs.version-prefix}}" = "2.0.0" # version-prefix
test "${{steps.Informational.outputs.version-suffix}}" = "beta.1" # version-suffix
test "${{steps.Informational.outputs.package-version}}" = "2.0.0-beta.1" # package-version
test "${{steps.Informational.outputs.assembly-version}}" = "2.0.0" # assembly-version
test "${{steps.Informational.outputs.file-version}}" = "2.0.0" # file-version
test "${{steps.Informational.outputs.informational-version}}" = "v2 beta" # informational-version