Skip to content

Commit 29c710d

Browse files
committed
ci: migrate docs site monitoring to Github Actions
Move doc site monitoring from CircleCI to Github Actions, additionally runs the tests every 4 hours instead of once per hour. (cherry picked from commit e099c37)
1 parent 07f0fda commit 29c710d

File tree

2 files changed

+25
-39
lines changed

2 files changed

+25
-39
lines changed

.circleci/config.yml

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -253,22 +253,6 @@ jobs:
253253
- run: yarn ci-push-deploy-docs-app
254254
- *slack_notify_on_failure
255255

256-
# ----------------------------------------
257-
# Job that monitors the docs site, ensuring
258-
# the docs site is online and works as expected.
259-
# ----------------------------------------
260-
monitor_docs_site:
261-
docker:
262-
- image: *docker-browser-image
263-
resource_class: xlarge
264-
steps:
265-
- checkout_and_rebase
266-
- *restore_cache
267-
- *yarn_install
268-
269-
- run: yarn ci-docs-monitor-test
270-
- *slack_notify_on_failure
271-
272256
# ----------------------------------------
273257
# Job that publishes the build snapshots
274258
# ----------------------------------------
@@ -339,21 +323,3 @@ workflows:
339323
filters: *publish_branches_filter
340324
requires:
341325
- build_release_packages
342-
343-
# Snapshot tests workflow that is scheduled to run all specified jobs every hour.
344-
# This workflow runs various jobs against the Angular snapshot builds from Github.
345-
snapshot_tests:
346-
jobs:
347-
- monitor_docs_site:
348-
filters: *only_main_branch_filter
349-
350-
triggers:
351-
- schedule:
352-
cron: '0 * * * *'
353-
filters:
354-
branches:
355-
only:
356-
# We only want to run the main branch against the snapshot builds because
357-
# it's not guaranteed that older versions of Angular Material always work
358-
# with the latest Angular version.
359-
- main

.github/workflows/scheduled-ci.yml

Lines changed: 25 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Scheduled CI
22

33
on:
44
schedule:
5-
- cron: '0 0/4 * * *'
5+
- cron: '0 0/4 * * *'
66

77
concurrency:
88
group: ${{ github.workflow }}-${{ github.ref }}
@@ -27,7 +27,7 @@ jobs:
2727
- name: Setup Bazel RBE
2828
uses: angular/dev-infra/github-actions/bazel/configure-remote@fb30926790c6225d553b91a4818cab2fdde4fb4e
2929
- name: Setting up Angular snapshot builds
30-
# Angular snapshots must be set up first so that the yarn install properly
30+
# Angular snapshots must be set up first so that the yarn install properly
3131
# updates the yarn.lock as expected with the changes
3232
run: node ./scripts/circleci/setup-angular-snapshots.js main
3333
- name: Install node modules
@@ -55,7 +55,7 @@ jobs:
5555
- name: Setup Bazel RBE
5656
uses: angular/dev-infra/github-actions/bazel/configure-remote@fb30926790c6225d553b91a4818cab2fdde4fb4e
5757
- name: Setting up Angular snapshot builds
58-
# Angular snapshots must be set up first so that the yarn install properly
58+
# Angular snapshots must be set up first so that the yarn install properly
5959
# updates the yarn.lock as expected with the changes
6060
run: node ./scripts/circleci/setup-angular-snapshots.js main
6161
- name: Install node modules
@@ -85,7 +85,7 @@ jobs:
8585
- name: Setup Bazel RBE
8686
uses: angular/dev-infra/github-actions/bazel/configure-remote@fb30926790c6225d553b91a4818cab2fdde4fb4e
8787
- name: Setting up Angular snapshot builds
88-
# Angular snapshots must be set up first so that the yarn install properly
88+
# Angular snapshots must be set up first so that the yarn install properly
8989
# updates the yarn.lock as expected with the changes
9090
run: node ./scripts/circleci/setup-angular-snapshots.js main
9191
- name: Install MDC Canary
@@ -101,4 +101,24 @@ jobs:
101101
channel-id: 'C015EBF2XB6'
102102
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 }}'
103103
env:
104-
SLACK_BOT_TOKEN: ${{ secrets.ANGULAR_ROBOT_SLACK_TOKEN }}
104+
SLACK_BOT_TOKEN: ${{ secrets.ANGULAR_ROBOT_SLACK_TOKEN }}
105+
106+
monitor-docs-site:
107+
runs-on: ubuntu-latest
108+
steps:
109+
- name: Initialize environment
110+
uses: angular/dev-infra/github-actions/npm/checkout-and-setup-node@fb30926790c6225d553b91a4818cab2fdde4fb4e
111+
with:
112+
cache-node-modules: true
113+
- name: Install node modules
114+
run: yarn install --frozen-lockfile
115+
- name: Check Docs Site
116+
run: yarn ci-docs-monitor-test
117+
- name: Notify about failed test
118+
if: ${{ failure() }}
119+
uses: slackapi/slack-github-action@e28cf165c92ffef168d23c5c9000cffc8a25e117 # v=v1.24.0
120+
with:
121+
channel-id: 'C015EBF2XB6'
122+
slack-message: 'Docs site monitoring job failed for ${{ github.base_ref }} branch failed on build ${{ github.event.after }}: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}'
123+
env:
124+
SLACK_BOT_TOKEN: ${{ secrets.ANGULAR_ROBOT_SLACK_TOKEN }}

0 commit comments

Comments
 (0)