Skip to content

Commit

Permalink
chore: fix git linting on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Kelly Selden authored and kellyselden committed Jan 5, 2021
1 parent a5e780d commit b23c8f5
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,32 @@ env:
DETECT_CHROMEDRIVER_VERSION: true

jobs:
lint:
lint-git:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }}
# grab default branch to calculate branch point to know when to stop linting
- if: ${{ github.base_ref }}
run: git branch ${{ github.base_ref }} origin/${{ github.base_ref }}
- uses: actions/setup-node@v2

- run: yarn install --frozen-lockfile
- run: yarn lint:git

lint:
needs: lint-git

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2

- run: yarn install --frozen-lockfile
- run: yarn lint:md
- run: yarn lint:js

Expand Down

0 comments on commit b23c8f5

Please sign in to comment.