@@ -2,15 +2,16 @@ name: Health Metrics
2
2
3
3
on : [push, pull_request]
4
4
5
+ env :
6
+ METRICS_SERVICE_URL : ${{ secrets.METRICS_SERVICE_URL }}
7
+ GITHUB_PULL_REQUEST_NUMBER : ${{ github.event.pull_request.number }}
8
+ GITHUB_PULL_REQUEST_BASE_SHA : ${{ github.event.pull_request.base.sha }}
9
+
5
10
jobs :
6
- binary-size-test :
11
+ binary-size :
7
12
name : Binary Size
8
13
if : github.event_name == 'push' || !(github.event.pull_request.head.repo.fork)
9
14
runs-on : ubuntu-latest
10
- env :
11
- METRICS_SERVICE_URL : ${{ secrets.METRICS_SERVICE_URL }}
12
- GITHUB_PULL_REQUEST_NUMBER : ${{ github.event.pull_request.number }}
13
- GITHUB_PULL_REQUEST_BASE_SHA : ${{ github.event.pull_request.base.sha }}
14
15
steps :
15
16
- uses : actions/checkout@v2
16
17
- uses : actions/setup-node@v1
@@ -19,12 +20,24 @@ jobs:
19
20
- uses : GoogleCloudPlatform/github-actions/setup-gcloud@master
20
21
with :
21
22
service_account_key : ${{ secrets.GCP_SA_KEY }}
22
- - run : cp config/ci.config.json config/project.json
23
23
- run : yarn install
24
24
- run : yarn build
25
25
- name : Run health-metrics/binary-size test
26
26
run : yarn size-report
27
+ modular-export-size :
28
+ name : Binary Size For Modular Exports
29
+ if : github.event_name == 'push' || !(github.event.pull_request.head.repo.fork)
30
+ runs-on : ubuntu-latest
31
+ steps :
32
+ - uses : actions/checkout@v2
33
+ - uses : actions/setup-node@v1
34
+ with :
35
+ node-version : 10.x
36
+ - uses : GoogleCloudPlatform/github-actions/setup-gcloud@master
37
+ with :
38
+ service_account_key : ${{ secrets.GCP_SA_KEY }}
39
+ - run : yarn install
40
+ - run : yarn build
27
41
- name : Run health-metrics/modular-exports-binary-size test
28
42
run : yarn modular-export-size-report
29
-
30
43
# TODO(yifany): Enable startup times testing on CI.
0 commit comments