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

40 lines
1.1 KiB
YAML
Raw Normal View History

name: Run lint checks potentially affecting projects across the monorepo
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
runs-on: ubuntu-20.04
2022-04-01 02:24:22 +00:00
timeout-minutes: 5
steps:
- uses: actions/checkout@v3
2022-04-01 02:24:22 +00:00
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
2022-04-01 02:24:22 +00:00
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '7.4'
tools: composer
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"
- name: Install PNPM
run: npm install -g pnpm@^6.24.2
- name: Install dependencies
run: pnpm install
- name: Run changelog validation
run: pnpm changelog --filter=* -- validate