We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5d5d921 commit ce3e81bCopy full SHA for ce3e81b
.github/workflows/lint.yml
@@ -0,0 +1,29 @@
1
+name: Lint
2
+
3
+on: [push, pull_request]
4
5
+jobs:
6
+ check-format:
7
+ runs-on: ubuntu-latest
8
+ env:
9
+ # We need jq +1.7 because of jqlang/jq#1741.
10
+ JQ_VERSION: '1.7'
11
12
+ steps:
13
+ - name: Checkout code
14
+ uses: actions/checkout@v4
15
16
+ - name: Replace jq with specified version
17
+ run: |
18
+ wget -O jq "https://github.com/jqlang/jq/releases/download/jq-${{ env.JQ_VERSION }}/jq-linux-amd64"
19
+ chmod +x ./jq
20
+ JQ_PATH=$(which jq)
21
+ sudo mv jq $JQ_PATH
22
+ - name: Check jq version
23
+ run: jq --version
24
25
+ - name: Run make -C schema fmt
26
+ run: make -C schema fmt
27
28
+ - name: Check for changes
29
+ run: git diff --exit-code
0 commit comments