Skip to content

Commit bb7fd9e

Browse files
committed
Move pre/post steps to workflow
1 parent 0802fc1 commit bb7fd9e

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"release": "ts-node-script scripts/release/cli.ts",
3333
"pretest": "node tools/pretest.js",
3434
"test": "lerna run --concurrency 4 --stream test",
35-
"test:ci": "export FIREBASE_CI_TEST_START_TIME=$(date +%s); lerna run --concurrency 4 --stream test:ci; node scripts/print_test_logs.js",
35+
"test:ci": "lerna run --concurrency 4 --stream test:ci",
3636
"test:release": "lerna run --concurrency 4 --ignore @firebase/*-exp --ignore firebase-exp --stream test:ci",
3737
"test:exp": "lerna run --concurrency 4 --stream --scope @firebase/*-exp --scope firebase-exp test",
3838
"pretest:coverage": "mkdirp 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)