name: Check legacy syntax
on:
  - pull_request
jobs:
  check-code-style:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-node@v4
        with:
          node-version: 22.x
      - run: cd scripts/admin/check-legacy-syntax && npm ci
      - name: Check syntax
        run: cd scripts/admin/check-legacy-syntax && node check-syntax.js
