mirror of
https://github.com/datahub-project/datahub.git
synced 2025-06-27 05:03:31 +00:00
ci: Add yaml format check (#13407)
This commit is contained in:
parent
2aa11a6bf6
commit
eb41e0bbdd
30
.github/workflows/yaml-format.yml
vendored
Normal file
30
.github/workflows/yaml-format.yml
vendored
Normal 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
|
Loading…
x
Reference in New Issue
Block a user