Skip to content

Commit

Permalink
Create lint.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Luke Carr committed May 20, 2020
1 parent 852c7d3 commit 313ad37
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Lint

on:
push:
branches: [master]
paths: ["**.js", "**.ts", "**.md", ".json", ".yml"]
pull_request:
branches: [master]
paths: ["**.js", "**.ts", "**.md", ".json", ".yml"]

jobs:
Lint:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [12.x]

steps:
- name: Checkout Repository
uses: actions/checkout@v2

- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}

- name: Install Dependencies
run: npm ci

- name: Run Linter
run: npm run lint
env:
CI: true

0 comments on commit 313ad37

Please sign in to comment.