Skip to content

Commit

Permalink
chore: Add linting job to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
petarvujovic98 committed Sep 20, 2022
1 parent bfde857 commit ca1d1d4
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Lint
on:
pull_request:
push:
branches:
- master
- develop
jobs:
lint:
strategy:
matrix:
platform: [ubuntu-latest]
runs-on: ${{ matrix.platform }}
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: "16"
- name: Install modules
run: yarn
- name: Run lint
run: yarn lint
- name: Run git status
run: git status
- name: Check that lints where commited
run: test -z "$(git status --porcelain)"

0 comments on commit ca1d1d4

Please sign in to comment.