Skip to content

Commit f9a9db6

Browse files
authored
refactor: move material.aio GHA to the root (#30288)
* refactor: move material.aio GHA to the root This makes them functional again. To keep this change simple, we just update the working directory but run the same things * refactor: upload testlogs when test step fails * refactor: pin chromium test to same Ubuntu as before See last passing job in old repo: https://github.com/angular/material.angular.io/actions/runs/12390917032/job/34586949768 * refactor: only trigger material.aio workflows when files touched in that folder
1 parent 5142268 commit f9a9db6

File tree

3 files changed

+18
-25
lines changed

3 files changed

+18
-25
lines changed

material.angular.io/.github/workflows/ci.yml renamed to .github/workflows/ci.material-aio.yml

+9-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1-
name: CI
1+
name: 'CI (material.angular.io)'
22

33
on:
44
push:
55
branches:
66
- main
77
- '[0-9]+.[0-9]+.x'
8+
paths:
9+
- 'material.angular.io/**'
810

911
concurrency:
1012
group: ${{ github.workflow }}-${{ github.ref }}
@@ -15,6 +17,7 @@ permissions: {}
1517
defaults:
1618
run:
1719
shell: bash
20+
working-directory: material.angular.io
1821

1922
env:
2023
# TODO: Remove when pnpm is exclusively used.
@@ -54,13 +57,14 @@ jobs:
5457
run: yarn bazel test --test_tag_filters=-lint,-e2e,-audit //...
5558
- name: Store Test Logs
5659
uses: actions/upload-artifact@834a144ee995460fba8ed112a2fc961b36a5ec5a # v4.3.6
60+
if: always()
5761
with:
5862
name: test-logs
59-
path: bazel-testlogs/
63+
path: material.angular.io/bazel-testlogs/
6064
retention-days: 14
6165

6266
lighthouse:
63-
runs-on: ubuntu-latest
67+
runs-on: ubuntu-22.04 # Note, fails on Ubuntu 24.04. see https://github.com/actions/runner-images/issues/10636
6468
steps:
6569
- name: Initialize environment
6670
uses: angular/dev-infra/github-actions/npm/checkout-and-setup-node@359350bbc10aab1bac85d0eec61a53377078ab82
@@ -70,7 +74,8 @@ jobs:
7074
run: yarn bazel test --test_tag_filters=audit //...
7175
- name: Store Audit Logs
7276
uses: actions/upload-artifact@834a144ee995460fba8ed112a2fc961b36a5ec5a # v4.3.6
77+
if: always()
7378
with:
7479
name: lighthouse-logs
75-
path: bazel-testlogs/
80+
path: material.angular.io/bazel-testlogs/
7681
retention-days: 14

material.angular.io/.github/workflows/pr.yml renamed to .github/workflows/pr.material-aio.yml

+9-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
name: Pull Request
1+
name: 'CI (material.angular.io)'
22

33
on:
44
pull_request:
55
types: [opened, synchronize, reopened]
6+
paths:
7+
- 'material.angular.io/**'
68

79
concurrency:
810
group: ${{ github.workflow }}-${{ github.ref }}
@@ -13,6 +15,7 @@ permissions: {}
1315
defaults:
1416
run:
1517
shell: bash
18+
working-directory: material.angular.io
1619

1720
env:
1821
# TODO: Remove when pnpm is exclusively used.
@@ -52,13 +55,14 @@ jobs:
5255
run: yarn bazel test --test_tag_filters=-lint,-e2e,-audit //...
5356
- name: Store Test Logs
5457
uses: actions/upload-artifact@834a144ee995460fba8ed112a2fc961b36a5ec5a # v4.3.6
58+
if: always()
5559
with:
5660
name: test-logs
57-
path: bazel-testlogs/
61+
path: material.angular.io/bazel-testlogs/
5862
retention-days: 14
5963

6064
lighthouse:
61-
runs-on: ubuntu-latest
65+
runs-on: ubuntu-22.04 # Note, fails on Ubuntu 24.04. see https://github.com/actions/runner-images/issues/10636
6266
steps:
6367
- name: Initialize environment
6468
uses: angular/dev-infra/github-actions/npm/checkout-and-setup-node@359350bbc10aab1bac85d0eec61a53377078ab82
@@ -68,7 +72,8 @@ jobs:
6872
run: yarn bazel test --test_tag_filters=audit //...
6973
- name: Store Audit Logs
7074
uses: actions/upload-artifact@834a144ee995460fba8ed112a2fc961b36a5ec5a # v4.3.6
75+
if: always()
7176
with:
7277
name: lighthouse-logs
73-
path: bazel-testlogs/
78+
path: material.angular.io/bazel-testlogs/
7479
retention-days: 14

material.angular.io/.github/ISSUE_TEMPLATE/docs-infra.md

-17
This file was deleted.

0 commit comments

Comments
 (0)