|
8 | 8 | runs-on: ubuntu-latest
|
9 | 9 |
|
10 | 10 | steps:
|
11 |
| - - uses: actions/checkout@v2 |
12 |
| - - name: Set up Node (10) |
13 |
| - uses: actions/setup-node@v1 |
14 |
| - with: |
15 |
| - node-version: 10.x |
16 |
| - - name: install Chrome stable |
17 |
| - run: | |
18 |
| - sudo apt-get update |
19 |
| - sudo apt-get install google-chrome-stable |
20 |
| - - name: Test setup and yarn install |
21 |
| - run: | |
22 |
| - cp config/ci.config.json config/project.json |
23 |
| - yarn |
24 |
| - - name: yarn build |
25 |
| - run: yarn build |
26 |
| - - name: Run unit tests |
27 |
| - run: xvfb-run yarn test:ci |
28 |
| - env: |
29 |
| - FCM_TEST_PROJECT_SERVER_KEY: $${{secrets.FCM_TEST_PROJECT_SERVER_KEY}} |
30 |
| - - name: Generate coverage file |
31 |
| - run: yarn ci:coverage |
32 |
| - - name: Run coverage |
33 |
| - uses: coverallsapp/github-action@master |
34 |
| - with: |
35 |
| - github-token: ${{ secrets.GITHUB_TOKEN }} |
36 |
| - path-to-lcov: ./lcov-all.info |
37 |
| - continue-on-error: true |
| 11 | + - uses: actions/checkout@v2 |
| 12 | + - name: Set up Node (10) |
| 13 | + uses: actions/setup-node@v1 |
| 14 | + with: |
| 15 | + node-version: 10.x |
| 16 | + - name: install Chrome stable |
| 17 | + run: | |
| 18 | + sudo apt-get update |
| 19 | + sudo apt-get install google-chrome-stable |
| 20 | + - name: Test setup and yarn install |
| 21 | + run: | |
| 22 | + cp config/ci.config.json config/project.json |
| 23 | + yarn |
| 24 | + - name: yarn build |
| 25 | + run: yarn build |
| 26 | + - name: Run unit tests |
| 27 | + run: xvfb-run yarn test:ci |
| 28 | + env: |
| 29 | + FCM_TEST_PROJECT_SERVER_KEY: $${{secrets.FCM_TEST_PROJECT_SERVER_KEY}} |
| 30 | + - name: Generate coverage file |
| 31 | + run: yarn ci:coverage |
| 32 | + - name: Run coverage |
| 33 | + uses: coverallsapp/github-action@master |
| 34 | + with: |
| 35 | + github-token: ${{ secrets.GITHUB_TOKEN }} |
| 36 | + path-to-lcov: ./lcov-all.info |
| 37 | + continue-on-error: true |
38 | 38 | deploy:
|
39 | 39 | name: Canary Deploy
|
40 | 40 | runs-on: ubuntu-latest
|
41 | 41 | if: github.ref == 'refs/heads/master'
|
42 | 42 | needs: test
|
43 | 43 |
|
44 | 44 | steps:
|
45 |
| - - uses: actions/checkout@v2 |
46 |
| - - name: Checkout |
47 |
| - # Canary release script requires git history and tags. |
48 |
| - run: git fetch --prune --unshallow |
49 |
| - - name: Set up Node (10) |
50 |
| - uses: actions/setup-node@v1 |
51 |
| - with: |
52 |
| - node-version: 10.x |
53 |
| - - name: Yarn install |
54 |
| - run: yarn |
55 |
| - - name: Deploy canary |
56 |
| - run: yarn release --canary |
57 |
| - env: |
58 |
| - NPM_TOKEN_ANALYTICS: ${{secrets.NPM_TOKEN_ANALYTICS}} |
59 |
| - NPM_TOKEN_ANALYTICS_INTEROP_TYPES: ${{secrets.NPM_TOKEN_ANALYTICS_INTEROP_TYPES}} |
60 |
| - NPM_TOKEN_ANALYTICS_TYPES: ${{secrets.NPM_TOKEN_ANALYTICS_TYPES}} |
61 |
| - NPM_TOKEN_APP: ${{secrets.NPM_TOKEN_APP}} |
62 |
| - NPM_TOKEN_APP_TYPES: ${{secrets.NPM_TOKEN_APP_TYPES}} |
63 |
| - NPM_TOKEN_AUTH: ${{secrets.NPM_TOKEN_AUTH}} |
64 |
| - NPM_TOKEN_AUTH_INTEROP_TYPES: ${{secrets.NPM_TOKEN_AUTH_INTEROP_TYPES}} |
65 |
| - NPM_TOKEN_AUTH_TYPES: ${{secrets.NPM_TOKEN_AUTH_TYPES}} |
66 |
| - NPM_TOKEN_COMPONENT: ${{secrets.NPM_TOKEN_COMPONENT}} |
67 |
| - NPM_TOKEN_DATABASE: ${{secrets.NPM_TOKEN_DATABASE}} |
68 |
| - NPM_TOKEN_DATABASE_TYPES: ${{secrets.NPM_TOKEN_DATABASE_TYPES}} |
69 |
| - NPM_TOKEN_FIRESTORE: ${{secrets.NPM_TOKEN_FIRESTORE}} |
70 |
| - NPM_TOKEN_FIRESTORE_TYPES: ${{secrets.NPM_TOKEN_FIRESTORE_TYPES}} |
71 |
| - NPM_TOKEN_FUNCTIONS: ${{secrets.NPM_TOKEN_FUNCTIONS}} |
72 |
| - NPM_TOKEN_FUNCTIONS_TYPES: ${{secrets.NPM_TOKEN_FUNCTIONS_TYPES}} |
73 |
| - NPM_TOKEN_INSTALLATIONS: ${{secrets.NPM_TOKEN_INSTALLATIONS}} |
74 |
| - NPM_TOKEN_INSTALLATIONS_TYPES: ${{secrets.NPM_TOKEN_INSTALLATIONS_TYPES}} |
75 |
| - NPM_TOKEN_LOGGER: ${{secrets.NPM_TOKEN_LOGGER}} |
76 |
| - NPM_TOKEN_MESSAGING: ${{secrets.NPM_TOKEN_MESSAGING}} |
77 |
| - NPM_TOKEN_MESSAGING_TYPES: ${{secrets.NPM_TOKEN_MESSAGING_TYPES}} |
78 |
| - NPM_TOKEN_PERFORMANCE: ${{secrets.NPM_TOKEN_PERFORMANCE}} |
79 |
| - NPM_TOKEN_PERFORMANCE_TYPES: ${{secrets.NPM_TOKEN_PERFORMANCE_TYPES}} |
80 |
| - NPM_TOKEN_POLYFILL: ${{secrets.NPM_TOKEN_POLYFILL}} |
81 |
| - NPM_TOKEN_REMOTE_CONFIG: ${{secrets.NPM_TOKEN_REMOTE_CONFIG}} |
82 |
| - NPM_TOKEN_REMOTE_CONFIG_TYPES: ${{secrets.NPM_TOKEN_REMOTE_CONFIG_TYPES}} |
83 |
| - NPM_TOKEN_STORAGE: ${{secrets.NPM_TOKEN_STORAGE}} |
84 |
| - NPM_TOKEN_STORAGE_TYPES: ${{secrets.NPM_TOKEN_STORAGE_TYPES}} |
85 |
| - NPM_TOKEN_TESTING: ${{secrets.NPM_TOKEN_TESTING}} |
86 |
| - NPM_TOKEN_UTIL: ${{secrets.NPM_TOKEN_UTIL}} |
87 |
| - NPM_TOKEN_WEBCHANNEL_WRAPPER: ${{secrets.NPM_TOKEN_WEBCHANNEL_WRAPPER}} |
88 |
| - NPM_TOKEN_FIREBASE: ${{secrets.NPM_TOKEN_FIREBASE}} |
89 |
| - NPM_TOKEN_RXFIRE: ${{secrets.NPM_TOKEN_RXFIRE}} |
90 |
| - CI: true |
| 45 | + - uses: actions/checkout@v2 |
| 46 | + - name: Checkout |
| 47 | + # Canary release script requires git history and tags. |
| 48 | + run: git fetch --prune --unshallow |
| 49 | + - name: Set up Node (10) |
| 50 | + uses: actions/setup-node@v1 |
| 51 | + with: |
| 52 | + node-version: 10.x |
| 53 | + - name: Yarn install |
| 54 | + run: yarn |
| 55 | + - name: Deploy canary |
| 56 | + run: yarn release --canary |
| 57 | + env: |
| 58 | + NPM_TOKEN_ANALYTICS: ${{secrets.NPM_TOKEN_ANALYTICS}} |
| 59 | + NPM_TOKEN_ANALYTICS_INTEROP_TYPES: ${{secrets.NPM_TOKEN_ANALYTICS_INTEROP_TYPES}} |
| 60 | + NPM_TOKEN_ANALYTICS_TYPES: ${{secrets.NPM_TOKEN_ANALYTICS_TYPES}} |
| 61 | + NPM_TOKEN_APP: ${{secrets.NPM_TOKEN_APP}} |
| 62 | + NPM_TOKEN_APP_TYPES: ${{secrets.NPM_TOKEN_APP_TYPES}} |
| 63 | + NPM_TOKEN_AUTH: ${{secrets.NPM_TOKEN_AUTH}} |
| 64 | + NPM_TOKEN_AUTH_INTEROP_TYPES: ${{secrets.NPM_TOKEN_AUTH_INTEROP_TYPES}} |
| 65 | + NPM_TOKEN_AUTH_TYPES: ${{secrets.NPM_TOKEN_AUTH_TYPES}} |
| 66 | + NPM_TOKEN_COMPONENT: ${{secrets.NPM_TOKEN_COMPONENT}} |
| 67 | + NPM_TOKEN_DATABASE: ${{secrets.NPM_TOKEN_DATABASE}} |
| 68 | + NPM_TOKEN_DATABASE_TYPES: ${{secrets.NPM_TOKEN_DATABASE_TYPES}} |
| 69 | + NPM_TOKEN_FIRESTORE: ${{secrets.NPM_TOKEN_FIRESTORE}} |
| 70 | + NPM_TOKEN_FIRESTORE_TYPES: ${{secrets.NPM_TOKEN_FIRESTORE_TYPES}} |
| 71 | + NPM_TOKEN_FUNCTIONS: ${{secrets.NPM_TOKEN_FUNCTIONS}} |
| 72 | + NPM_TOKEN_FUNCTIONS_TYPES: ${{secrets.NPM_TOKEN_FUNCTIONS_TYPES}} |
| 73 | + NPM_TOKEN_INSTALLATIONS: ${{secrets.NPM_TOKEN_INSTALLATIONS}} |
| 74 | + NPM_TOKEN_INSTALLATIONS_TYPES: ${{secrets.NPM_TOKEN_INSTALLATIONS_TYPES}} |
| 75 | + NPM_TOKEN_LOGGER: ${{secrets.NPM_TOKEN_LOGGER}} |
| 76 | + NPM_TOKEN_MESSAGING: ${{secrets.NPM_TOKEN_MESSAGING}} |
| 77 | + NPM_TOKEN_MESSAGING_TYPES: ${{secrets.NPM_TOKEN_MESSAGING_TYPES}} |
| 78 | + NPM_TOKEN_PERFORMANCE: ${{secrets.NPM_TOKEN_PERFORMANCE}} |
| 79 | + NPM_TOKEN_PERFORMANCE_TYPES: ${{secrets.NPM_TOKEN_PERFORMANCE_TYPES}} |
| 80 | + NPM_TOKEN_POLYFILL: ${{secrets.NPM_TOKEN_POLYFILL}} |
| 81 | + NPM_TOKEN_REMOTE_CONFIG: ${{secrets.NPM_TOKEN_REMOTE_CONFIG}} |
| 82 | + NPM_TOKEN_REMOTE_CONFIG_TYPES: ${{secrets.NPM_TOKEN_REMOTE_CONFIG_TYPES}} |
| 83 | + NPM_TOKEN_STORAGE: ${{secrets.NPM_TOKEN_STORAGE}} |
| 84 | + NPM_TOKEN_STORAGE_TYPES: ${{secrets.NPM_TOKEN_STORAGE_TYPES}} |
| 85 | + NPM_TOKEN_TESTING: ${{secrets.NPM_TOKEN_TESTING}} |
| 86 | + NPM_TOKEN_UTIL: ${{secrets.NPM_TOKEN_UTIL}} |
| 87 | + NPM_TOKEN_WEBCHANNEL_WRAPPER: ${{secrets.NPM_TOKEN_WEBCHANNEL_WRAPPER}} |
| 88 | + NPM_TOKEN_FIREBASE: ${{secrets.NPM_TOKEN_FIREBASE}} |
| 89 | + NPM_TOKEN_RXFIRE: ${{secrets.NPM_TOKEN_RXFIRE}} |
| 90 | + CI: true |
0 commit comments