Merge pull request #464 from nextmv-io/merschformann/bump-glog #3100
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: json lint | |
| on: [push] | |
| jobs: | |
| sdk-json-lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: git clone | |
| uses: actions/checkout@v4 | |
| - name: set up node | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: 18.8 | |
| - name: install prettier | |
| run: npm install prettier@v2.7.1 --global | |
| - name: lint .json files with prettier | |
| run: | | |
| # Only lint if there are .json files in the repo. | |
| if [ -n "$(find . -type f -name '*.json')" ]; then | |
| prettier -c "**/*.json" | |
| fi |