Skip to content

Commit

Permalink
ci: separate lint job
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Jun 15, 2021
1 parent 5dcbcfb commit 6bb349e
Showing 1 changed file with 26 additions and 4 deletions.
30 changes: 26 additions & 4 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 6bb349e

Please sign in to comment.