Skip to content

Commit a8d0f10

Browse files
committed
Move pre/post steps to workflow
1 parent f469020 commit a8d0f10

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.github/workflows/test-all.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,12 @@ jobs:
2323
yarn
2424
- name: yarn build
2525
run: yarn build
26+
- name: Set start timestamp env var
27+
run: echo "::set-env name=FIREBASE_CI_TEST_START_TIME::$(date +%s)"
2628
- name: Run unit tests
27-
run: xvfb-run yarn test:ci
29+
run: |
30+
xvfb-run yarn test:ci
31+
node scripts/print_test_logs.js
2832
- name: Generate coverage file
2933
run: yarn ci:coverage
3034
- name: Run coverage

scripts/print_test_logs.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ const LOGDIR = process.env.CI ? process.env.HOME : '/tmp';
2222
const LOGFILE = path.join(LOGDIR, 'firebase-ci-log.txt');
2323
const SUMMARY_FILE = path.join(LOGDIR, 'firebase-ci-summary.txt');
2424

25-
const EXCESSIVE_RUN_TIME = 1000 * 60 * 60; // 1 hour
25+
// const EXCESSIVE_RUN_TIME = 1000 * 60 * 60; // 1 hour
26+
const EXCESSIVE_RUN_TIME = 1000 * 60 * 10; // 10 minutes, TEST
2627

2728
(async () => {
2829
const now = Date.now();

0 commit comments

Comments
 (0)