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 working-directory: packages/squiggle-lang
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Install Dependencies
run: yarn
- name: Check lint - name: Check lint
run: yarn lint run: yarn lint
lang-build-test: lang-build-test-bundle:
name: Language build and test name: Language build, test, and bundle
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: pre_check needs: pre_check
if: ${{ needs.pre_check.outputs.should_skip_lang != 'true' }} if: ${{ needs.pre_check.outputs.should_skip_lang != 'true' }}
@ -67,7 +69,7 @@ jobs:
run: yarn bundle run: yarn bundle
components-build-test: components-build-test:
name: Components build and test name: Components bundle and build
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: pre_check needs: pre_check
if: ${{ (needs.pre_check.outputs.should_skip_components != 'true') || (needs.pre_check.outputs.should_skip_lang != 'true') }} 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 for file in $files
do do
current=`cat $file` 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)` diff=`diff <(echo $current) <(echo $linted)`
if [ ${#diff} -gt 0 ] if [ ${#diff} -gt 0 ]