From 6bb349ee69debbac828d55d8cbb61eff5a4c9887 Mon Sep 17 00:00:00 2001 From: Amin Yahyaabadi Date: Mon, 14 Jun 2021 19:37:46 -0500 Subject: [PATCH] ci: separate lint job --- .github/workflows/CI.yml | 30 ++++++++++++++++++++++++++---- 1 file changed, 26 insertions(+), 4 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 6433d97..8953b56 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -25,14 +25,36 @@ jobs: channel: ${{ matrix.atom_channel }} - name: Install dependencies - run: | - apm install + run: apm install - name: Run tests 👩🏾‍💻 run: npm run test + Lint: + if: "!contains(github.event.head_commit.message, '[skip ci]')" + runs-on: ubuntu-latest + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 0 + - name: Commit lint ✨ + uses: wagoid/commitlint-github-action@v2 + + - name: Setup Pnpm + uses: pnpm/action-setup@v2 + with: + version: ${{ matrix.pnpm }} + + - name: Install dependencies + run: pnpm install --frozen-lockfile + + # - name: Format ✨ + # run: pnpm run test.format + - name: Flow - run: npm run test.flow + run: pnpm run test.flow - name: Lint - run: npm run test.lint + run: pnpm run test.lint