mirror of
https://github.com/openpgpjs/openpgpjs.git
synced 2026-03-04 08:15:20 +00:00
CI: update interop test suite: fix sop-openpgpjs, include crypto-refresh tests, and compare with gopenpgp v3
sop-openpgpjs did not correctly apply the `OPENPGPJS_PATH` env variable; as a result, it did not actually test the code from either the PR and base branch, but always from the hardcoded version bundled with it.
This commit is contained in:
3
.github/test-suite/config.json.template
vendored
3
.github/test-suite/config.json.template
vendored
@@ -21,7 +21,8 @@
|
||||
"path": "__GPGME_SOP__"
|
||||
},
|
||||
{
|
||||
"path": "__GOSOP__"
|
||||
"id": "gosop-v2",
|
||||
"path": "__GOSOP_V2__"
|
||||
},
|
||||
{
|
||||
"path": "__RNP_SOP__"
|
||||
|
||||
2
.github/test-suite/prepare_config.sh
vendored
2
.github/test-suite/prepare_config.sh
vendored
@@ -7,7 +7,7 @@ cat $CONFIG_TEMPLATE \
|
||||
| sed "s@__OPENPGPJS_MAIN__@${OPENPGPJS_MAIN}@g" \
|
||||
| sed "s@__SQOP__@${SQOP}@g" \
|
||||
| sed "s@__GPGME_SOP__@${GPGME_SOP}@g" \
|
||||
| sed "s@__GOSOP__@${GOSOP}@g" \
|
||||
| sed "s@__GOSOP_V2__@${GOSOP_DIR_V2}/gosop@g" \
|
||||
| sed "s@__SOP_OPENPGPJS__@${SOP_OPENPGPJS}@g" \
|
||||
| sed "s@__RNP_SOP__@${RNP_SOP}@g" \
|
||||
> $CONFIG_OUTPUT
|
||||
4
.github/workflows/sop-test-suite.yml
vendored
4
.github/workflows/sop-test-suite.yml
vendored
@@ -10,7 +10,7 @@ jobs:
|
||||
name: Run interoperability test suite
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: ghcr.io/protonmail/openpgp-interop-test-docker:v1.1.1
|
||||
image: ghcr.io/protonmail/openpgp-interop-test-docker:v1.1.6
|
||||
credentials:
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.github_token }}
|
||||
@@ -79,7 +79,7 @@ jobs:
|
||||
with:
|
||||
name: test-suite-results.json
|
||||
- name: Compare with baseline
|
||||
uses: ProtonMail/openpgp-interop-test-analyzer@v1
|
||||
uses: ProtonMail/openpgp-interop-test-analyzer@v2
|
||||
with:
|
||||
results: ${{ steps.download-test-results.outputs.download-path }}/test-suite-results.json
|
||||
output: baseline-comparison.json
|
||||
|
||||
Reference in New Issue
Block a user