diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 417b9593..674f2a4d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -46,9 +46,14 @@ jobs: steps: - uses: actions/checkout@v2 - name: Install Dependencies - run: yarn - - name: Check lint + run: cd ../../ && yarn + - name: Check rescript lint run: yarn lint + - name: Check javascript, typescript, and markdown lint + uses: creyD/prettier_action@v4.2 + with: + dry: true + prettier_options: --check . lang-build-test-bundle: name: Language build, test, and bundle @@ -70,6 +75,23 @@ jobs: - name: Run webpack run: yarn bundle + components-lint: + name: Components lint + runs-on: ubuntu-latest + needs: pre_check + if: ${{ (needs.pre_check.outputs.should_skip_components != 'true') || (needs.pre_check.outputs.should_skip_lang != 'true') }} + defaults: + run: + shell: bash + working-directory: packages/components + steps: + - uses: actions/checkout@v2 + - name: Check javascript, typescript, and markdown lint + uses: creyD/prettier_action@v4.2 + with: + dry: true + prettier_options: --check . + components-build-test: name: Components bundle and build runs-on: ubuntu-latest @@ -90,6 +112,23 @@ jobs: - name: Build storybook run: yarn build + website-lint: + name: Website lint + 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') }} + defaults: + run: + shell: bash + working-directory: packages/website + steps: + - uses: actions/checkout@v2 + - name: Check javascript, typescript, and markdown lint + uses: creyD/prettier_action@v4.2 + with: + dry: true + prettier_options: --check . + website-build: name: Website build runs-on: ubuntu-latest