Skip to content

Commit c33925a

Browse files
authored
Merge pull request #435 from eed3si9n/wip/fix-sync
Reinstate prettier to fix the sync job
2 parents 28c3be0 + 1ee76b1 commit c33925a

File tree

5 files changed

+31
-2
lines changed

5 files changed

+31
-2
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,13 @@ jobs:
117117
LILA_DIR: lila
118118
run: script/smoke_test.sh
119119

120+
- name: Check that prettier exists
121+
if: ${{ runner.os == 'Linux' }}
122+
run: |
123+
npm install
124+
export PATH=./node_modules/.bin:$PATH
125+
prettier --write --ignore-unknown grammar.js
126+
120127
- name: copy nvim-treesitter queries
121128
if: ${{ runner.os == 'Linux' }}
122129
shell: bash

.prettierrc.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"arrowParens": "avoid"
3+
}

package-lock.json

Lines changed: 17 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

script/smoke_test.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ check_complexity () {
6161
echo "Report written to $report_file"
6262
fi
6363

64-
top=$(echo "$out" | head -n 1 | sed 's/ \+/ /g')
64+
out1=$(echo "$out" | grep -v "ExperimentalWarning" | grep -v "experimental" | grep -v "node")
65+
top=$(echo "$out1" | head -n 1 | sed 's/ \+/ /g')
6566
top_definition=$(echo "$top" | cut -d' ' -f1)
6667
top_definition_line=$(grep -n "$top_definition:" grammar.js | head -n 1 | cut -d : -f 1)
6768
actual=$(echo "$top" | cut -d' ' -f2)

0 commit comments

Comments
 (0)