woocommerce/.github/workflows/pr-lint-monorepo.yml

45 lines
1.4 KiB
YAML
Raw Normal View History

name: Run lint checks potentially affecting projects across the monorepo
on:
pull_request:
paths-ignore:
- '**/changelog/**'
branches:
- 'trunk'
2022-04-01 02:24:22 +00:00
concurrency:
group: changelogger-${{ github.event_name }}-${{ github.ref }}
cancel-in-progress: true
permissions: {}
env:
FORCE_COLOR: 1
2022-04-01 02:24:22 +00:00
jobs:
changelogger_used:
name: Changelogger use
runs-on: ubuntu-20.04
permissions:
contents: read
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
2022-04-01 02:24:22 +00:00
- name: Setup WooCommerce Monorepo
uses: ./.github/actions/setup-woocommerce-monorepo
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
- 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"
- name: Run changelog validation
run: pnpm --recursive --parallel --stream changelog validate