Update mock-server, upload ci logs on failure

This commit is contained in:
Fedor Indutny
2022-02-24 17:21:56 -08:00
committed by GitHub
parent 21db47c423
commit 1d89ffcc2d
10 changed files with 83 additions and 10 deletions

View File

@@ -13,6 +13,7 @@ jobs:
linux:
runs-on: ubuntu-latest
if: ${{ github.repository == 'signalapp/Signal-Desktop-Private' }}
timeout-minutes: 30
steps:
- name: Get system specs
@@ -62,6 +63,7 @@ jobs:
NODE_ENV: production
RUN_COUNT: 10
ELECTRON_ENABLE_STACK_DUMPING: on
ARTIFACTS_DIR: artifacts/startup
- name: Run send benchmarks
run: |
@@ -74,6 +76,7 @@ jobs:
NODE_ENV: production
RUN_COUNT: 100
ELECTRON_ENABLE_STACK_DUMPING: on
ARTIFACTS_DIR: artifacts/send
- name: Run group send benchmarks
run: |
@@ -87,6 +90,7 @@ jobs:
NODE_ENV: production
RUN_COUNT: 100
ELECTRON_ENABLE_STACK_DUMPING: on
ARTIFACTS_DIR: artifacts/group-send
- name: Run conversation open benchmarks
run: |
@@ -100,6 +104,14 @@ jobs:
NODE_ENV: production
RUN_COUNT: 100
ELECTRON_ENABLE_STACK_DUMPING: on
ARTIFACTS_DIR: artifacts/convo-open
- name: Upload benchmark logs on failure
if: failure()
uses: actions/upload-artifact@v2
with:
name: logs
path: artifacts
- name: Clone benchmark repo
uses: actions/checkout@v2

View File

@@ -12,6 +12,7 @@ on:
jobs:
lint:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- run: lsb_release -a
@@ -42,6 +43,7 @@ jobs:
needs: lint
runs-on: macos-11.0
if: github.ref == 'refs/heads/development' || github.ref == 'refs/heads/master'
timeout-minutes: 30
steps:
- run: uname -a
@@ -70,6 +72,7 @@ jobs:
run: yarn electron:install-app-deps
- run: yarn test-node
- run: yarn test-electron
timeout-minutes: 5
- run: yarn test-release
env:
NODE_ENV: production
@@ -77,6 +80,7 @@ jobs:
linux:
needs: lint
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- run: lsb_release -a
@@ -105,6 +109,7 @@ jobs:
DISABLE_INSPECT_FUSE: on
- run: xvfb-run --auto-servernum yarn test-node
- run: xvfb-run --auto-servernum yarn test-electron
timeout-minutes: 5
env:
LANG: en_US
LANGUAGE: en_US
@@ -114,7 +119,8 @@ jobs:
windows:
needs: lint
runs-on: windows-latest
runs-on: windows-2019
timeout-minutes: 30
steps:
- run: systeminfo
@@ -146,6 +152,7 @@ jobs:
env:
DISABLE_INSPECT_FUSE: on
- run: yarn test-electron
timeout-minutes: 5
- run: yarn test-release
env:
SIGNAL_ENV: production
@@ -154,6 +161,7 @@ jobs:
needs: lint
runs-on: ubuntu-latest
if: ${{ github.repository == 'signalapp/Signal-Desktop-Private' }}
timeout-minutes: 30
steps:
- name: Get system specs