Skip to content

Commit 09ec0b8

Browse files
committed
ci: Add lint.
1 parent ac9de5f commit 09ec0b8

File tree

3 files changed

+20
-4
lines changed

3 files changed

+20
-4
lines changed

.github/workflows/create-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
bump-version:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- name: Checkout code
12+
- name: Checkout Code
1313
uses: actions/checkout@v2
1414
- name: Automated Version Bump
1515
uses: phips28/[email protected]

.github/workflows/lint.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Lint
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
run-linters:
7+
name: Run Linters
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- name: Checkout code
12+
uses: actions/checkout@v2
13+
14+
- name: Set up Node.js
15+
uses: actions/setup-node@v1
16+
with:
17+
node-version: 12
18+
- run: npm install
19+
- run: npm run lint

.travis.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,11 @@ install:
1010
- npm i
1111

1212
stages:
13-
- lint
1413
- name: gh_pages
1514
if: branch = master
1615

1716
jobs:
1817
include:
19-
- stage: lint
20-
script: npm run lint
2118
- stage: gh_pages
2219
script: npm run build:example
2320
after_script:

0 commit comments

Comments
 (0)