added lint to ci

This commit is contained in:
Quinn Dougherty 2022-04-11 00:19:04 -04:00
parent 518f082c53
commit 72dd99bacb

View File

@ -33,11 +33,24 @@ jobs:
with:
paths: '["packages/website/**"]'
lang-lint:
name: Language lint
runs-on: ubuntu-latest
needs: pre_check
if: ${{ ! needs.pre_Check.outputs.should_skip_lang }}
defaults:
run:
shell: bash
working-directory: packages/squiggle-lang
steps:
- uses: actions/checkout@v2
- name: Check lint
run: yarn lint
lang-build-test:
name: Language build and test
runs-on: ubuntu-latest
needs: pre_check
if: ${{ needs.pre_check.outputs.should_skip_lang != 'true' }}
needs: lang-lint
defaults:
run:
shell: bash
@ -56,8 +69,8 @@ jobs:
components-build-test:
name: Components build and test
runs-on: ubuntu-latest
needs: [pre_check]
if: ${{ (needs.pre_check.outputs.should_skip_components != 'true') || (needs.pre_check.outputs.should_skip_lang != 'true') }}
needs: pre_check
if: ${{ ! needs.pre_check.outputs.should_skip_components || ! needs.pre_check.outputs.should_skip_lang }}
defaults:
run:
shell: bash
@ -77,7 +90,7 @@ jobs:
name: Website build
runs-on: ubuntu-latest
needs: pre_check
if: ${{ (needs.pre_check.outputs.should_skip_website != 'true') || (needs.pre_check.outputs.should_skip_lang != 'true') || needs.pre_check.outputs.should_skip_components != 'true' }}
if: ${{ ! needs.pre_check.outputs.should_skip_website != 'true' || ! needs.pre_check.outputs.should_skip_lang != 'true' || ! needs.pre_check.outputs.should_skip_components }}
defaults:
run:
shell: bash