-
Notifications
You must be signed in to change notification settings - Fork 6.8k
88 lines (80 loc) · 3.34 KB
/
ci.material-aio.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
86
87
88
name: 'CI (material.angular.io)'
on:
push:
branches:
- main
- '[0-9]+.[0-9]+.x'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions: {}
defaults:
run:
shell: bash
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Initialize environment
uses: angular/dev-infra/github-actions/npm/checkout-and-setup-node@64d0e9da9c4309a5a05f6c0a05383203a46a700d
- name: Setup Bazel
uses: angular/dev-infra/github-actions/bazel/setup@64d0e9da9c4309a5a05f6c0a05383203a46a700d
- name: Setup Bazel RBE
uses: angular/dev-infra/github-actions/bazel/configure-remote@64d0e9da9c4309a5a05f6c0a05383203a46a700d
- name: Install node modules
run: pnpm install --frozen-lockfile
- name: Execute Linting
run: pnpm bazel test --test_tag_filters=lint //docs/...
build:
runs-on: ubuntu-latest
steps:
- name: Initialize environment
uses: angular/dev-infra/github-actions/npm/checkout-and-setup-node@64d0e9da9c4309a5a05f6c0a05383203a46a700d
- name: Setup Bazel
uses: angular/dev-infra/github-actions/bazel/setup@64d0e9da9c4309a5a05f6c0a05383203a46a700d
- name: Setup Bazel RBE
uses: angular/dev-infra/github-actions/bazel/configure-remote@64d0e9da9c4309a5a05f6c0a05383203a46a700d
- name: Install node modules
run: pnpm install --frozen-lockfile
- name: Execute Build
run: pnpm -s build //docs/...
test:
runs-on: ubuntu-latest
steps:
- name: Initialize environment
uses: angular/dev-infra/github-actions/npm/checkout-and-setup-node@64d0e9da9c4309a5a05f6c0a05383203a46a700d
- name: Setup Bazel
uses: angular/dev-infra/github-actions/bazel/setup@64d0e9da9c4309a5a05f6c0a05383203a46a700d
- name: Setup Bazel RBE
uses: angular/dev-infra/github-actions/bazel/configure-remote@64d0e9da9c4309a5a05f6c0a05383203a46a700d
- name: Install node modules
run: pnpm install --frozen-lockfile
- name: Execute Tests
run: pnpm bazel test --test_tag_filters=-lint,-e2e,-audit //docs/...
- name: Store Test Logs
uses: actions/upload-artifact@834a144ee995460fba8ed112a2fc961b36a5ec5a # v4.3.6
if: always()
with:
name: test-logs
path: material.angular.io/bazel-testlogs/
retention-days: 14
lighthouse:
runs-on: ubuntu-22.04 # Note, fails on Ubuntu 24.04. see https://github.com/actions/runner-images/issues/10636
steps:
- name: Initialize environment
uses: angular/dev-infra/github-actions/npm/checkout-and-setup-node@64d0e9da9c4309a5a05f6c0a05383203a46a700d
- name: Setup Bazel
uses: angular/dev-infra/github-actions/bazel/setup@64d0e9da9c4309a5a05f6c0a05383203a46a700d
- name: Setup Bazel RBE
uses: angular/dev-infra/github-actions/bazel/configure-remote@64d0e9da9c4309a5a05f6c0a05383203a46a700d
- name: Install node modules
run: pnpm install --frozen-lockfile
- name: Execute Lighthouse Audit
run: pnpm -s bazel test --test_tag_filters=audit //docs/...
- name: Store Audit Logs
uses: actions/upload-artifact@834a144ee995460fba8ed112a2fc961b36a5ec5a # v4.3.6
if: always()
with:
name: lighthouse-logs
path: material.angular.io/bazel-testlogs/
retention-days: 14