1+ name : Scheduled CI
2+
3+ on :
4+ schedule :
5+ - cron : ' 0 0/4 * * *'
6+
7+ concurrency :
8+ group : ${{ github.workflow }}-${{ github.ref }}
9+ cancel-in-progress : true
10+
11+ permissions : {}
12+
13+ defaults :
14+ run :
15+ shell : bash
16+
17+ jobs :
18+ test_browsers :
19+ runs-on : ubuntu-latest-4core
20+ steps :
21+ - name : Initialize environment
22+ uses : angular/dev-infra/github-actions/npm/checkout-and-setup-node@fb30926790c6225d553b91a4818cab2fdde4fb4e
23+ with :
24+ cache-node-modules : true
25+ - name : Setup Bazel
26+ uses : angular/dev-infra/github-actions/bazel/setup@fb30926790c6225d553b91a4818cab2fdde4fb4e
27+ - name : Setup Bazel RBE
28+ uses : angular/dev-infra/github-actions/bazel/configure-remote@fb30926790c6225d553b91a4818cab2fdde4fb4e
29+ - name : Setting up Angular snapshot builds
30+ # Angular snapshots must be set up first so that the yarn install properly
31+ # updates the yarn.lock as expected with the changes
32+ run : node ./scripts/circleci/setup-angular-snapshots.js main
33+ - name : Install node modules
34+ run : yarn install
35+ - name : Run Browser tests
36+ run : yarn bazel test --build_tag_filters=-e2e --test_tag_filters=-e2e --build_tests_only -- src/...
37+ - name : Notify about failed test
38+ if : ${{ failure() }}
39+ uses : slackapi/slack-github-action@e28cf165c92ffef168d23c5c9000cffc8a25e117 # v=v1.24.0
40+ with :
41+ channel-id : ' C015EBF2XB6'
42+ slack-message : ' Browser snapshot test job failed for ${{ github.base_ref }} branch failed on build ${{ github.event.after }}: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}'
43+ env :
44+ SLACK_BOT_TOKEN : ${{ secrets.ANGULAR_ROBOT_SLACK_TOKEN }}
45+
46+ linker_tests :
47+ runs-on : ubuntu-latest-4core
48+ steps :
49+ - name : Initialize environment
50+ uses : angular/dev-infra/github-actions/npm/checkout-and-setup-node@fb30926790c6225d553b91a4818cab2fdde4fb4e
51+ with :
52+ cache-node-modules : true
53+ - name : Setup Bazel
54+ uses : angular/dev-infra/github-actions/bazel/setup@fb30926790c6225d553b91a4818cab2fdde4fb4e
55+ - name : Setup Bazel RBE
56+ uses : angular/dev-infra/github-actions/bazel/configure-remote@fb30926790c6225d553b91a4818cab2fdde4fb4e
57+ - name : Setting up Angular snapshot builds
58+ # Angular snapshots must be set up first so that the yarn install properly
59+ # updates the yarn.lock as expected with the changes
60+ run : node ./scripts/circleci/setup-angular-snapshots.js main
61+ - name : Install node modules
62+ run : yarn install
63+ - name : Run linker tests using AOT
64+ run : yarn test-linker-aot
65+ - name : Run linker tests using JIT
66+ run : yarn test-linker-jit
67+ - name : Notify about failed test
68+ if : ${{ failure() }}
69+ uses : slackapi/slack-github-action@e28cf165c92ffef168d23c5c9000cffc8a25e117 # v=v1.24.0
70+ with :
71+ channel-id : ' C015EBF2XB6'
72+ slack-message : ' Snapshot linker test job failed for ${{ github.base_ref }} branch failed on build ${{ github.event.after }}: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}'
73+ env :
74+ SLACK_BOT_TOKEN : ${{ secrets.ANGULAR_ROBOT_SLACK_TOKEN }}
75+
76+ mdc_snapshot_test :
77+ runs-on : ubuntu-latest-4core
78+ steps :
79+ - name : Initialize environment
80+ uses : angular/dev-infra/github-actions/npm/checkout-and-setup-node@fb30926790c6225d553b91a4818cab2fdde4fb4e
81+ with :
82+ cache-node-modules : true
83+ - name : Setup Bazel
84+ uses : angular/dev-infra/github-actions/bazel/setup@fb30926790c6225d553b91a4818cab2fdde4fb4e
85+ - name : Setup Bazel RBE
86+ uses : angular/dev-infra/github-actions/bazel/configure-remote@fb30926790c6225d553b91a4818cab2fdde4fb4e
87+ - name : Setting up Angular snapshot builds
88+ # Angular snapshots must be set up first so that the yarn install properly
89+ # updates the yarn.lock as expected with the changes
90+ run : node ./scripts/circleci/setup-angular-snapshots.js main
91+ - name : Install MDC Canary
92+ run : node ./scripts/circleci/setup-mdc-canary.js
93+ - name : Install node modules
94+ run : yarn install
95+ - name : Run browser tests using MDC Canary
96+ run : bazel test --build_tag_filters=-docs-package,-e2e --test_tag_filters=-e2e --build_tests_only -- src/...
97+ - name : Notify about failed test
98+ if : ${{ failure() }}
99+ uses : slackapi/slack-github-action@e28cf165c92ffef168d23c5c9000cffc8a25e117 # v=v1.24.0
100+ with :
101+ channel-id : ' C015EBF2XB6'
102+ slack-message : ' MDC snapshot test job failed for ${{ github.base_ref }} branch failed on build ${{ github.event.after }}: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}'
103+ env :
104+ SLACK_BOT_TOKEN : ${{ secrets.ANGULAR_ROBOT_SLACK_TOKEN }}
0 commit comments