forked from angular/components
-
Notifications
You must be signed in to change notification settings - Fork 0
85 lines (78 loc) · 3.23 KB
/
scheduled-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
name: Scheduled CI
on:
schedule:
- cron: '0 0/4 * * *'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions: {}
defaults:
run:
shell: bash
jobs:
browsers_snapshot_test:
runs-on: ubuntu-latest-4core
steps:
- name: Initialize environment
uses: angular/dev-infra/github-actions/npm/checkout-and-setup-node@89624a6442b75b5cda33c5e9b5c8c4f87ca4f13d
with:
cache-node-modules: true
- name: Setup Bazel
uses: angular/dev-infra/github-actions/bazel/setup@89624a6442b75b5cda33c5e9b5c8c4f87ca4f13d
- name: Setup Bazel RBE
uses: angular/dev-infra/github-actions/bazel/configure-remote@89624a6442b75b5cda33c5e9b5c8c4f87ca4f13d
- name: Setting up Angular snapshot builds
# Angular snapshots must be set up first so that the yarn install properly
# updates the yarn.lock as expected with the changes
run: node ./scripts/circleci/setup-angular-snapshots.js main
- name: Install node modules
run: yarn install
- name: Run Browser tests
run: yarn bazel test --build_tag_filters=-e2e --test_tag_filters=-e2e --build_tests_only -- src/...
- uses: ./.github/actions/slack
if: ${{ failure() && github.event_name == 'push' }}
with:
JOB_NAME: 'Browser snapshot test'
SLACK_BOT_TOKEN: ${{ secrets.ANGULAR_ROBOT_SLACK_TOKEN }}
linker_snapshot_tests:
runs-on: ubuntu-latest-4core
steps:
- name: Initialize environment
uses: angular/dev-infra/github-actions/npm/checkout-and-setup-node@89624a6442b75b5cda33c5e9b5c8c4f87ca4f13d
with:
cache-node-modules: true
- name: Setup Bazel
uses: angular/dev-infra/github-actions/bazel/setup@89624a6442b75b5cda33c5e9b5c8c4f87ca4f13d
- name: Setup Bazel RBE
uses: angular/dev-infra/github-actions/bazel/configure-remote@89624a6442b75b5cda33c5e9b5c8c4f87ca4f13d
- name: Setting up Angular snapshot builds
# Angular snapshots must be set up first so that the yarn install properly
# updates the yarn.lock as expected with the changes
run: node ./scripts/circleci/setup-angular-snapshots.js main
- name: Install node modules
run: yarn install
- name: Run linker tests using AOT
run: yarn test-linker-aot
- name: Run linker tests using JIT
run: yarn test-linker-jit
- uses: ./.github/actions/slack
if: ${{ failure() && github.event_name == 'push' }}
with:
JOB_NAME: 'Linker snapshot test'
SLACK_BOT_TOKEN: ${{ secrets.ANGULAR_ROBOT_SLACK_TOKEN }}
monitor-docs-site:
runs-on: ubuntu-latest
steps:
- name: Initialize environment
uses: angular/dev-infra/github-actions/npm/checkout-and-setup-node@89624a6442b75b5cda33c5e9b5c8c4f87ca4f13d
with:
cache-node-modules: true
- name: Install node modules
run: yarn install --frozen-lockfile
- name: Check Docs Site
run: yarn ci-docs-monitor-test
- uses: ./.github/actions/slack
if: ${{ failure() && github.event_name == 'push' }}
with:
JOB_NAME: 'Docs site monitoring'
SLACK_BOT_TOKEN: ${{ secrets.ANGULAR_ROBOT_SLACK_TOKEN }}