Run backup integration tests in CI

This commit is contained in:
Fedor Indutny 2024-09-23 13:56:33 -07:00 committed by GitHub
parent 55820bb8a7
commit 8292767f1c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 15 additions and 0 deletions

View file

@ -189,12 +189,21 @@ jobs:
DD_API_KEY: ${{ secrets.DATADOG_API_KEY }}
- 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
timeout-minutes: 5
env:
ARTIFACTS_DIR: artifacts/linux
LANG: en_US
LANGUAGE: en_US
BACKUP_INTEGRATION_DIR: 'backup-integration-tests/test-cases'
- run: xvfb-run --auto-servernum npm run test-release
env:
NODE_ENV: production

View file

@ -56,6 +56,12 @@ describe('backup/integration', () => {
.filter(file => file.endsWith('.binproto'))
.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) {
it(basename(fullPath), async () => {
const expectedBuffer = await readFile(fullPath);