2022-04-11 15:49:45 +00:00
|
|
|
name: Run lint checks potentially affecting projects across the monorepo
|
2022-06-07 16:11:42 +00:00
|
|
|
on:
|
2023-01-12 01:09:36 +00:00
|
|
|
pull_request:
|
2024-10-24 07:06:48 +00:00
|
|
|
paths:
|
|
|
|
- '.github/workflows/pr-lint-monorepo.yml'
|
|
|
|
- 'packages/**'
|
|
|
|
- 'plugins/**'
|
|
|
|
- '!**/changelog/**'
|
2023-01-12 01:09:36 +00:00
|
|
|
branches:
|
|
|
|
- 'trunk'
|
2024-10-16 10:02:31 +00:00
|
|
|
|
2022-04-01 02:24:22 +00:00
|
|
|
concurrency:
|
2023-01-12 01:09:36 +00:00
|
|
|
group: changelogger-${{ github.event_name }}-${{ github.ref }}
|
|
|
|
cancel-in-progress: true
|
2023-01-02 17:28:11 +00:00
|
|
|
|
|
|
|
permissions: {}
|
|
|
|
|
2024-10-16 10:02:31 +00:00
|
|
|
env:
|
|
|
|
FORCE_COLOR: 1
|
|
|
|
|
2022-04-01 02:24:22 +00:00
|
|
|
jobs:
|
2023-01-12 01:09:36 +00:00
|
|
|
changelogger_used:
|
|
|
|
name: Changelogger use
|
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
timeout-minutes: 15
|
|
|
|
steps:
|
2024-09-26 11:57:43 +00:00
|
|
|
- uses: actions/checkout@v4
|
2023-01-12 01:09:36 +00:00
|
|
|
with:
|
|
|
|
ref: ${{ github.event.pull_request.head.sha }}
|
|
|
|
fetch-depth: 0
|
2022-04-01 02:24:22 +00:00
|
|
|
|
2023-01-12 01:09:36 +00:00
|
|
|
- name: Setup WooCommerce Monorepo
|
|
|
|
uses: ./.github/actions/setup-woocommerce-monorepo
|
2024-10-16 10:02:31 +00:00
|
|
|
with:
|
|
|
|
# The package has majority of composer-deps, therefore referencing it
|
|
|
|
pull-package-composer-deps: '@woocommerce/plugin-woocommerce'
|
2022-04-01 02:24:22 +00:00
|
|
|
|
2023-01-12 01:09:36 +00:00
|
|
|
- name: Check change files are touched for touched projects
|
|
|
|
env:
|
|
|
|
BASE: ${{ github.event.pull_request.base.sha }}
|
|
|
|
HEAD: ${{ github.event.pull_request.head.sha }}
|
|
|
|
run: php tools/monorepo/check-changelogger-use.php --debug "$BASE" "$HEAD"
|
2022-07-12 21:07:12 +00:00
|
|
|
|
2023-01-12 01:09:36 +00:00
|
|
|
- name: Run changelog validation
|
2024-10-16 10:02:31 +00:00
|
|
|
run: pnpm --recursive --parallel --stream changelog validate
|