Skip to content

Commit 55424ac

Browse files
committed
Ran lint script in CI
1 parent a2d1656 commit 55424ac

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

.github/workflows/ci.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- website-redesign-rfc
8+
tags:
9+
- v[0-9]+.[0-9]+.[0-9]+
10+
pull_request:
11+
12+
env:
13+
NODE_VERSION: 10
14+
15+
jobs:
16+
lint:
17+
name: Lint files
18+
runs-on: ubuntu-latest
19+
timeout-minutes: 3
20+
steps:
21+
- name: Check out a copy of the repo
22+
uses: actions/checkout@v2
23+
24+
- name: Use Node.js ${{ env.NODE_VERSION }}
25+
uses: actions/setup-node@v2-beta
26+
with:
27+
node-version: ${{ env.NODE_VERSION }}
28+
29+
- name: Cache npm cache and node_modules
30+
id: cache-dependencies
31+
uses: actions/cache@v2
32+
with:
33+
path: |
34+
~/.npm
35+
node_modules
36+
key: ${{ runner.os }}-${{ env.NODE_VERSION }}-${{ hashFiles('**/package-lock.json') }}
37+
restore-keys: ${{ runner.os }}-${{ env.NODE_VERSION }}-
38+
39+
- name: Install dependencies
40+
run: npm install
41+
if: steps.cache-dependencies.outputs.cache-hit != 'true'
42+
43+
- name: Lint
44+
run: npm run lint

0 commit comments

Comments
 (0)