Skip to content

Commit

Permalink
refactor: only trigger material.aio workflows when files touched in t…
Browse files Browse the repository at this point in the history
…hat folder
  • Loading branch information
alexeagle committed Jan 9, 2025
1 parent 233670c commit b1812e2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/ci.material-aio.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ on:
branches:
- main
- '[0-9]+.[0-9]+.x'
paths:
- 'material.angular.io/**'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand Down Expand Up @@ -62,7 +64,7 @@ jobs:
retention-days: 14

lighthouse:
runs-on: ubuntu-22.04 # Note, fails on Ubuntu 24.04, see https://github.com/actions/runner-images/issues/10636
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@359350bbc10aab1bac85d0eec61a53377078ab82
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/pr.material-aio.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ name: 'CI (material.angular.io)'
on:
pull_request:
types: [opened, synchronize, reopened]
paths:
- 'material.angular.io/**'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand Down Expand Up @@ -60,7 +62,7 @@ jobs:
retention-days: 14

lighthouse:
runs-on: ubuntu-22.04 # Note, fails on Ubuntu 24.04, see https://github.com/actions/runner-images/issues/10636
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@359350bbc10aab1bac85d0eec61a53377078ab82
Expand Down

0 comments on commit b1812e2

Please sign in to comment.