install dependencies in lint job
This commit is contained in:
parent
9f97213ec5
commit
16258c2538
8
.github/workflows/ci.yml
vendored
8
.github/workflows/ci.yml
vendored
|
@ -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') }}
|
||||
|
|
|
@ -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 ]
|
||||
|
|
Loading…
Reference in New Issue
Block a user