Skip to content

Commit

Permalink
Break out linting into its own action
Browse files Browse the repository at this point in the history
  • Loading branch information
johno committed Jul 17, 2020
1 parent 3ca8e0a commit afd60c2
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/ci.yml
Expand Up @@ -39,11 +39,9 @@ jobs:
env:
CI: 'true'

- name: Build and Lint
- name: Build
if: matrix.os != 'windows-latest'
run: |
yarn build
yarn lint
run: yarn build

- name: Test
run: yarn test
Expand Down
27 changes: 27 additions & 0 deletions .github/workflows/lint.yml
@@ -0,0 +1,27 @@
name: CI

on: [push, pull_request]

jobs:
default:
name: Lint JS and MDX files
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1

- uses: actions/setup-node@v1
with:
node-version: 14

- name: Setup yarn
run: |
curl -o- -L https://yarnpkg.com/install.sh | bash
export PATH="$HOME/.yarn/bin:$PATH"
- name: Install Dependencies
run: yarn --frozen-lockfile
env:
CI: 'true'

- name: Lint
run: yarn lint

0 comments on commit afd60c2

Please sign in to comment.