From 16258c25382e9b813c73ea7dd52893d8a7f54980 Mon Sep 17 00:00:00 2001 From: Quinn Dougherty Date: Mon, 11 Apr 2022 01:27:21 -0400 Subject: [PATCH] install dependencies in lint job --- .github/workflows/ci.yml | 8 +++++--- packages/squiggle-lang/lint.sh | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0e509e5e..fef815f5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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') }} diff --git a/packages/squiggle-lang/lint.sh b/packages/squiggle-lang/lint.sh index 237ea262..892fd1bc 100755 --- a/packages/squiggle-lang/lint.sh +++ b/packages/squiggle-lang/lint.sh @@ -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 ]