added lint to ci
This commit is contained in:
parent
518f082c53
commit
72dd99bacb
23
.github/workflows/ci.yml
vendored
23
.github/workflows/ci.yml
vendored
|
@ -33,11 +33,24 @@ jobs:
|
||||||
with:
|
with:
|
||||||
paths: '["packages/website/**"]'
|
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:
|
lang-build-test:
|
||||||
name: Language build and test
|
name: Language build and test
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: pre_check
|
needs: lang-lint
|
||||||
if: ${{ needs.pre_check.outputs.should_skip_lang != 'true' }}
|
|
||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
shell: bash
|
shell: bash
|
||||||
|
@ -56,8 +69,8 @@ jobs:
|
||||||
components-build-test:
|
components-build-test:
|
||||||
name: Components build and test
|
name: Components build and test
|
||||||
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 || ! needs.pre_check.outputs.should_skip_lang }}
|
||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
shell: bash
|
shell: bash
|
||||||
|
@ -77,7 +90,7 @@ jobs:
|
||||||
name: Website build
|
name: Website build
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: pre_check
|
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:
|
defaults:
|
||||||
run:
|
run:
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
Loading…
Reference in New Issue
Block a user