Skip to content

Commit

Permalink
ci: merge the lint and build jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Nov 21, 2022
1 parent ee2204f commit c9cc7e5
Showing 1 changed file with 2 additions and 20 deletions.
22 changes: 2 additions & 20 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ jobs:
atom_channel: [stable, beta]
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: atom-community/action-setup-atom@v1
with:
channel: ${{ matrix.atom_channel }}
Expand All @@ -32,32 +34,12 @@ jobs:
- 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

- if: "!contains(github.event.head_commit.message, 'Prepare')"
name: Commit lint ✨
uses: wagoid/commitlint-github-action@v2

- name: Install dependencies
run: npm install --ignore-scripts

- name: Format ✨
run: npm run test.format

- name: Lint ✨
run: npm run test.lint

Skip:
if: contains(github.event.head_commit.message, '[skip ci]')
runs-on: ubuntu-latest
steps:
- name: Skip CI 🚫
run: echo skip ci

0 comments on commit c9cc7e5

Please sign in to comment.