Run backup integration tests in CI
This commit is contained in:
parent
55820bb8a7
commit
8292767f1c
2 changed files with 15 additions and 0 deletions
9
.github/workflows/ci.yml
vendored
9
.github/workflows/ci.yml
vendored
|
@ -189,12 +189,21 @@ jobs:
|
||||||
DD_API_KEY: ${{ secrets.DATADOG_API_KEY }}
|
DD_API_KEY: ${{ secrets.DATADOG_API_KEY }}
|
||||||
|
|
||||||
- run: xvfb-run --auto-servernum npm run test-node
|
- run: xvfb-run --auto-servernum npm run test-node
|
||||||
|
|
||||||
|
- name: Clone backup integration tests
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
repository: 'signalapp/Signal-Message-Backup-Tests'
|
||||||
|
ref: 'a18c9146e07441827a9b7c2e54ec0a5e6f2aa5bd'
|
||||||
|
path: 'backup-integration-tests'
|
||||||
|
|
||||||
- run: xvfb-run --auto-servernum npm run test-electron
|
- run: xvfb-run --auto-servernum npm run test-electron
|
||||||
timeout-minutes: 5
|
timeout-minutes: 5
|
||||||
env:
|
env:
|
||||||
ARTIFACTS_DIR: artifacts/linux
|
ARTIFACTS_DIR: artifacts/linux
|
||||||
LANG: en_US
|
LANG: en_US
|
||||||
LANGUAGE: en_US
|
LANGUAGE: en_US
|
||||||
|
BACKUP_INTEGRATION_DIR: 'backup-integration-tests/test-cases'
|
||||||
- run: xvfb-run --auto-servernum npm run test-release
|
- run: xvfb-run --auto-servernum npm run test-release
|
||||||
env:
|
env:
|
||||||
NODE_ENV: production
|
NODE_ENV: production
|
||||||
|
|
|
@ -56,6 +56,12 @@ describe('backup/integration', () => {
|
||||||
.filter(file => file.endsWith('.binproto'))
|
.filter(file => file.endsWith('.binproto'))
|
||||||
.map(file => join(BACKUP_INTEGRATION_DIR, file));
|
.map(file => join(BACKUP_INTEGRATION_DIR, file));
|
||||||
|
|
||||||
|
if (files.length === 0) {
|
||||||
|
it('no backup tests', () => {
|
||||||
|
throw new Error('No backup integration tests');
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
for (const fullPath of files) {
|
for (const fullPath of files) {
|
||||||
it(basename(fullPath), async () => {
|
it(basename(fullPath), async () => {
|
||||||
const expectedBuffer = await readFile(fullPath);
|
const expectedBuffer = await readFile(fullPath);
|
||||||
|
|
Loading…
Reference in a new issue