Skip to content

Commit 94a8711

Browse files
authored
feat: Add prettier enforcement (apache#2783)
1 parent f35d80c commit 94a8711

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing,
12+
# software distributed under the License is distributed on an
13+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
# KIND, either express or implied. See the License for the
15+
# specific language governing permissions and limitations
16+
# under the License.
17+
18+
name: Check Markdown Formatting
19+
20+
concurrency:
21+
group: ${{ github.repository }}-${{ github.head_ref || github.sha }}-${{ github.workflow }}
22+
cancel-in-progress: true
23+
24+
on:
25+
pull_request:
26+
paths:
27+
- '**.md'
28+
29+
jobs:
30+
prettier-check:
31+
runs-on: ubuntu-latest
32+
steps:
33+
- uses: actions/checkout@v5
34+
35+
- name: Setup Node.js
36+
uses: actions/setup-node@v6
37+
with:
38+
node-version: '24'
39+
40+
- name: Install prettier
41+
run: npm install -g prettier
42+
43+
- name: Check markdown formatting
44+
run: |
45+
# if you encounter error, run prettier locally and commit changes using instructions at:
46+
#
47+
# https://datafusion.apache.org/comet/contributor-guide/development.html#how-to-format-md-document
48+
#
49+
prettier --check "**/*.md"

0 commit comments

Comments
 (0)