ci: Add yaml format check (#13407)

This commit is contained in:
Andrew Sikowitz 2025-05-05 16:21:34 -07:00 committed by GitHub
parent 2aa11a6bf6
commit eb41e0bbdd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

30
.github/workflows/yaml-format.yml vendored Normal file
View File

@ -0,0 +1,30 @@
name: yaml format
on:
push:
branches:
- master
paths:
- "**/*.{yml,yaml}"
pull_request:
branches:
- "**"
paths:
- "**/*.{yml,yaml}"
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
yaml_format_check:
name: yaml_format_check
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: acryldata/sane-checkout-action@v3
- uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: run prettier --check
run: |-
./gradlew :datahub-web-react:githubActionsPrettierCheck