-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (41 loc) · 1.04 KB
/
develop.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Staging Checks
on:
push:
branches:
- dev
pull_request:
branches:
- dev
jobs:
format-js:
name: JS Code Format
runs-on: ubuntu-latest
timeout-minutes: 3
steps:
- name: Checkout branch
uses: actions/checkout@v2
with:
path: pycon-website-template
- name: Setup node
uses: actions/setup-node@v1
with:
node-version: "14.16"
- name: Cache NPM
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-14.16-${{ hashFiles('pycon-website-template/package.json') }}
restore-keys: |
${{ runner.os }}-node-14.16-${{ hashFiles('pycon-website-template/package.json') }}
- name: Install node dependencies
run: |
cd pycon-website-template/
npm install
- name: Show node environment
run: |
node --version
npm --version
- name: Run JS lint
run: |
cd pycon-website-template/
npm run lint