install dependencies in lint job

This commit is contained in:
Quinn Dougherty 2022-04-11 01:27:21 -04:00
parent 9f97213ec5
commit 16258c2538
2 changed files with 6 additions and 4 deletions

View File

@ -43,11 +43,13 @@ jobs:
working-directory: packages/squiggle-lang
steps:
- uses: actions/checkout@v2
- name: Install Dependencies
run: yarn
- name: Check lint
run: yarn lint
lang-build-test:
name: Language build and test
lang-build-test-bundle:
name: Language build, test, and bundle
runs-on: ubuntu-latest
needs: pre_check
if: ${{ needs.pre_check.outputs.should_skip_lang != 'true' }}
@ -67,7 +69,7 @@ jobs:
run: yarn bundle
components-build-test:
name: Components build and test
name: Components bundle and build
runs-on: ubuntu-latest
needs: pre_check
if: ${{ (needs.pre_check.outputs.should_skip_components != 'true') || (needs.pre_check.outputs.should_skip_lang != 'true') }}

View File

@ -8,7 +8,7 @@ errors=false
for file in $files
do
current=`cat $file`
linted=`echo "${current}" | ./node_modules/.bin/rescript format -stdin .res`
linted=`echo "${current}" | rescript format -stdin .res`
diff=`diff <(echo $current) <(echo $linted)`
if [ ${#diff} -gt 0 ]