mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-20 00:18:45 +01:00
Storage service tests and benches in ts/test-mock
This commit is contained in:
35
.github/workflows/ci.yml
vendored
35
.github/workflows/ci.yml
vendored
@@ -161,18 +161,8 @@ jobs:
|
||||
- name: Get other system specs
|
||||
run: uname -a
|
||||
|
||||
- name: Configure git to use HTTPS
|
||||
run: git config --global url."https://${{ secrets.AUTOMATED_GITHUB_PAT }}:x-oauth-basic@github.com".insteadOf ssh://git@github.com
|
||||
|
||||
- name: Clone Desktop repo
|
||||
uses: actions/checkout@v2
|
||||
- name: Clone Mock-Server repo
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
repository: 'signalapp/Mock-Signal-Server-Private'
|
||||
path: 'Mock-Server'
|
||||
ref: 'gamma'
|
||||
token: ${{ secrets.AUTOMATED_GITHUB_PAT }}
|
||||
|
||||
- name: Setup node.js
|
||||
uses: actions/setup-node@v2
|
||||
@@ -195,40 +185,19 @@ jobs:
|
||||
if: steps.cache-desktop-modules.outputs.cache-hit != 'true'
|
||||
run: yarn install --frozen-lockfile
|
||||
|
||||
- name: Install Mock-Server node_modules
|
||||
run: yarn install --frozen-lockfile
|
||||
working-directory: Mock-Server
|
||||
env:
|
||||
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1
|
||||
|
||||
- name: Build typescript
|
||||
run: yarn generate
|
||||
- name: Bundle
|
||||
run: yarn build:webpack
|
||||
|
||||
- name: Copy CI configuration
|
||||
run: |
|
||||
cp -rf ./Mock-Server/config/local-development.json \
|
||||
./config/local-development.json
|
||||
cp -rf ./config/local-development.json ./config/local-production.json
|
||||
|
||||
- name: Setup hosts
|
||||
run: sudo echo "127.0.0.1 mock.signal.org" | sudo tee -a /etc/hosts
|
||||
|
||||
- name: Run storage service tests
|
||||
run: |
|
||||
set -o pipefail
|
||||
rm -rf /tmp/mock
|
||||
xvfb-run --auto-servernum node Mock-Server/scripts/storage-service-test.js \
|
||||
./node_modules/.bin/electron .
|
||||
xvfb-run --auto-servernum yarn test-mock
|
||||
timeout-minutes: 10
|
||||
env:
|
||||
NODE_ENV: production
|
||||
DEBUG: mock:scripts:*
|
||||
|
||||
- name: Upload logs on failure
|
||||
if: failure()
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: logs
|
||||
path: /tmp/mock/logs
|
||||
DEBUG: mock:test-storage
|
||||
|
||||
Reference in New Issue
Block a user