|
23 | 23 | yarn
|
24 | 24 | - name: yarn build
|
25 | 25 | run: yarn build
|
| 26 | + - name: Set start timestamp env var |
| 27 | + run: echo "::set-env name=FIREBASE_CI_TEST_START_TIME::$(date +%s)" |
26 | 28 | - 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 |
28 | 32 | - name: Generate coverage file
|
29 | 33 | run: yarn ci:coverage
|
30 | 34 | - name: Run coverage
|
|
33 | 37 | github-token: ${{ secrets.GITHUB_TOKEN }}
|
34 | 38 | path-to-lcov: ./lcov-all.info
|
35 | 39 | continue-on-error: true
|
36 |
| - deploy: |
37 |
| - name: Canary Deploy |
38 |
| - runs-on: ubuntu-latest |
39 |
| - if: github.ref == 'refs/heads/master' |
40 |
| - needs: test |
41 |
| - |
42 |
| - steps: |
43 |
| - - uses: actions/checkout@v2 |
44 |
| - - name: Checkout |
45 |
| - # Canary release script requires git history and tags. |
46 |
| - run: git fetch --prune --unshallow |
47 |
| - - name: Set up Node (10) |
48 |
| - uses: actions/setup-node@v1 |
49 |
| - with: |
50 |
| - node-version: 10.x |
51 |
| - - name: Yarn install |
52 |
| - run: yarn |
53 |
| - - name: Deploy canary |
54 |
| - run: yarn release --canary |
55 |
| - env: |
56 |
| - NPM_TOKEN_ANALYTICS: ${{secrets.NPM_TOKEN_ANALYTICS}} |
57 |
| - NPM_TOKEN_ANALYTICS_INTEROP_TYPES: ${{secrets.NPM_TOKEN_ANALYTICS_INTEROP_TYPES}} |
58 |
| - NPM_TOKEN_ANALYTICS_TYPES: ${{secrets.NPM_TOKEN_ANALYTICS_TYPES}} |
59 |
| - NPM_TOKEN_APP: ${{secrets.NPM_TOKEN_APP}} |
60 |
| - NPM_TOKEN_APP_TYPES: ${{secrets.NPM_TOKEN_APP_TYPES}} |
61 |
| - NPM_TOKEN_AUTH: ${{secrets.NPM_TOKEN_AUTH}} |
62 |
| - NPM_TOKEN_AUTH_INTEROP_TYPES: ${{secrets.NPM_TOKEN_AUTH_INTEROP_TYPES}} |
63 |
| - NPM_TOKEN_AUTH_TYPES: ${{secrets.NPM_TOKEN_AUTH_TYPES}} |
64 |
| - NPM_TOKEN_COMPONENT: ${{secrets.NPM_TOKEN_COMPONENT}} |
65 |
| - NPM_TOKEN_DATABASE: ${{secrets.NPM_TOKEN_DATABASE}} |
66 |
| - NPM_TOKEN_DATABASE_TYPES: ${{secrets.NPM_TOKEN_DATABASE_TYPES}} |
67 |
| - NPM_TOKEN_FIRESTORE: ${{secrets.NPM_TOKEN_FIRESTORE}} |
68 |
| - NPM_TOKEN_FIRESTORE_TYPES: ${{secrets.NPM_TOKEN_FIRESTORE_TYPES}} |
69 |
| - NPM_TOKEN_FUNCTIONS: ${{secrets.NPM_TOKEN_FUNCTIONS}} |
70 |
| - NPM_TOKEN_FUNCTIONS_TYPES: ${{secrets.NPM_TOKEN_FUNCTIONS_TYPES}} |
71 |
| - NPM_TOKEN_INSTALLATIONS: ${{secrets.NPM_TOKEN_INSTALLATIONS}} |
72 |
| - NPM_TOKEN_INSTALLATIONS_TYPES: ${{secrets.NPM_TOKEN_INSTALLATIONS_TYPES}} |
73 |
| - NPM_TOKEN_LOGGER: ${{secrets.NPM_TOKEN_LOGGER}} |
74 |
| - NPM_TOKEN_MESSAGING: ${{secrets.NPM_TOKEN_MESSAGING}} |
75 |
| - NPM_TOKEN_MESSAGING_TYPES: ${{secrets.NPM_TOKEN_MESSAGING_TYPES}} |
76 |
| - NPM_TOKEN_PERFORMANCE: ${{secrets.NPM_TOKEN_PERFORMANCE}} |
77 |
| - NPM_TOKEN_PERFORMANCE_TYPES: ${{secrets.NPM_TOKEN_PERFORMANCE_TYPES}} |
78 |
| - NPM_TOKEN_POLYFILL: ${{secrets.NPM_TOKEN_POLYFILL}} |
79 |
| - NPM_TOKEN_REMOTE_CONFIG: ${{secrets.NPM_TOKEN_REMOTE_CONFIG}} |
80 |
| - NPM_TOKEN_REMOTE_CONFIG_TYPES: ${{secrets.NPM_TOKEN_REMOTE_CONFIG_TYPES}} |
81 |
| - NPM_TOKEN_STORAGE: ${{secrets.NPM_TOKEN_STORAGE}} |
82 |
| - NPM_TOKEN_STORAGE_TYPES: ${{secrets.NPM_TOKEN_STORAGE_TYPES}} |
83 |
| - NPM_TOKEN_TESTING: ${{secrets.NPM_TOKEN_TESTING}} |
84 |
| - NPM_TOKEN_UTIL: ${{secrets.NPM_TOKEN_UTIL}} |
85 |
| - NPM_TOKEN_WEBCHANNEL_WRAPPER: ${{secrets.NPM_TOKEN_WEBCHANNEL_WRAPPER}} |
86 |
| - NPM_TOKEN_FIREBASE: ${{secrets.NPM_TOKEN_FIREBASE}} |
87 |
| - NPM_TOKEN_RXFIRE: ${{secrets.NPM_TOKEN_RXFIRE}} |
88 |
| - CI: true |
0 commit comments