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:
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- 'trunk'
|
2022-04-01 02:24:22 +00:00
|
|
|
concurrency:
|
|
|
|
group: changelogger-${{ github.event_name }}-${{ github.ref }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
|
|
changelogger_used:
|
|
|
|
name: Changelogger use
|
2022-04-27 01:28:56 +00:00
|
|
|
runs-on: ubuntu-20.04
|
2022-04-01 02:24:22 +00:00
|
|
|
timeout-minutes: 5
|
|
|
|
steps:
|
2022-04-11 15:49:45 +00:00
|
|
|
- uses: actions/checkout@v3
|
2022-04-01 02:24:22 +00:00
|
|
|
with:
|
|
|
|
ref: ${{ github.event.pull_request.head.sha }}
|
2022-04-11 15:49:45 +00:00
|
|
|
fetch-depth: 0
|
2022-04-01 02:24:22 +00:00
|
|
|
|
2022-09-13 01:55:03 +00:00
|
|
|
- name: Setup WooCommerce Monorepo
|
|
|
|
uses: ./.github/actions/setup-woocommerce-monorepo
|
2022-04-01 02:24:22 +00:00
|
|
|
with:
|
2022-09-13 01:55:03 +00:00
|
|
|
build: false
|
2022-04-01 02:24:22 +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 }}
|
2022-04-01 18:12:16 +00:00
|
|
|
run: php tools/monorepo/check-changelogger-use.php --debug "$BASE" "$HEAD"
|
2022-07-12 21:07:12 +00:00
|
|
|
|
|
|
|
- name: Run changelog validation
|
|
|
|
run: pnpm changelog --filter=* -- validate
|