41
41
name : gosop-${{ github.sha }}-v2
42
42
path : ./gosop-${{ github.sha }}-v2
43
43
44
- build-gosop-main :
45
- name : Build gosop from main
44
+ build-gosop-main-v1 :
45
+ name : Build gosop from main v1-api
46
46
runs-on : ubuntu-latest
47
47
steps :
48
48
- name : Checkout
@@ -51,13 +51,33 @@ jobs:
51
51
uses : ./.github/actions/build-gosop
52
52
with :
53
53
go-crypto-ref : main
54
- binary-location : ./gosop-main
54
+ binary-location : ./gosop-main-v1
55
55
# Upload as artifact
56
56
- name : Upload gosop-main artifact
57
57
uses : actions/upload-artifact@v3
58
58
with :
59
- name : gosop-main
60
- path : ./gosop-main
59
+ name : gosop-main-v1
60
+ path : ./gosop-main-v1
61
+
62
+ build-gosop-main-v2 :
63
+ name : Build gosop from main v2-api
64
+ runs-on : ubuntu-latest
65
+ steps :
66
+ - name : Checkout
67
+ uses : actions/checkout@v3
68
+ - name : Build gosop from branch
69
+ uses : ./.github/actions/build-gosop
70
+ with :
71
+ go-crypto-ref : main
72
+ binary-location : ./gosop-main-v2
73
+ branch-gosop : gosop-gopenpgp-v3
74
+ gosop-build-path : build_gosop.sh
75
+ # Upload as artifact
76
+ - name : Upload gosop-main artifact
77
+ uses : actions/upload-artifact@v3
78
+ with :
79
+ name : gosop-main-v2
80
+ path : ./gosop-main-v2
61
81
62
82
test-suite :
63
83
name : Run interoperability test suite
@@ -70,20 +90,31 @@ jobs:
70
90
needs :
71
91
- build-gosop-v1
72
92
- build-gosop-v2
73
- - build-gosop-main
93
+ - build-gosop-main-v1
94
+ - build-gosop-main-v2
74
95
steps :
75
96
- name : Checkout
76
97
uses : actions/checkout@v3
77
- # Fetch gosop from main
78
- - name : Download gosop-main
98
+ # Fetch gosop from main v1
99
+ - name : Download gosop-main-v1
100
+ uses : actions/download-artifact@v3
101
+ with :
102
+ name : gosop-main-v1
103
+ # Test gosop-main-v1
104
+ - name : Make gosop-main executable
105
+ run : chmod +x gosop-main-v1
106
+ - name : Print gosop-main-v1 version
107
+ run : ./gosop-main-v1 version --extended
108
+ # Fetch gosop from main v2
109
+ - name : Download gosop-main-v2
79
110
uses : actions/download-artifact@v3
80
111
with :
81
- name : gosop-main
82
- # Test gosop-main
112
+ name : gosop-main-v2
113
+ # Test gosop-main-v2
83
114
- name : Make gosop-main executable
84
- run : chmod +x gosop-main
85
- - name : Print gosop-main version
86
- run : ./gosop-main version --extended
115
+ run : chmod +x gosop-main-v2
116
+ - name : Print gosop-main-v2 version
117
+ run : ./gosop-main-v2 version --extended
87
118
# Fetch gosop from branch v1
88
119
- name : Download gosop-branch-v1
89
120
uses : actions/download-artifact@v3
@@ -110,7 +141,7 @@ jobs:
110
141
run : ./gosop-branch-v2 version --extended
111
142
# Run test suite
112
143
- name : Prepare test configuration
113
- run : ./.github/test-suite/prepare_config.sh $CONFIG_TEMPLATE $CONFIG_OUTPUT $GITHUB_WORKSPACE/gosop-branch-v1 $GITHUB_WORKSPACE/gosop-branch-v2 $GITHUB_WORKSPACE/gosop-main
144
+ run : ./.github/test-suite/prepare_config.sh $CONFIG_TEMPLATE $CONFIG_OUTPUT $GITHUB_WORKSPACE/gosop-branch-v1 $GITHUB_WORKSPACE/gosop-branch-v2 $GITHUB_WORKSPACE/gosop-main-v1 $GITHUB_WORKSPACE/gosop-main-v2
114
145
env :
115
146
CONFIG_TEMPLATE : .github/test-suite/config.json.template
116
147
CONFIG_OUTPUT : .github/test-suite/config.json
@@ -151,13 +182,13 @@ jobs:
151
182
with :
152
183
results : ${{ steps.download-test-results.outputs.download-path }}/test-suite-results.json
153
184
output : baseline-comparison-v1.json
154
- baseline : gosop-main
185
+ baseline : gosop-main-v1
155
186
target : gosop-branch-v1
156
187
- name : Compare with baseline v2
157
188
uses : ProtonMail/openpgp-interop-test-analyzer@5d7f4b6868ebe3bfc909302828342c461f5f4940
158
189
with :
159
190
results : ${{ steps.download-test-results.outputs.download-path }}/test-suite-results.json
160
191
output : baseline-comparison-v2.json
161
- baseline : gosop-main
192
+ baseline : gosop-main-v2
162
193
target : gosop-branch-v2
163
194
0 commit comments