forked from open-sauced/open-sauced
-
Notifications
You must be signed in to change notification settings - Fork 0
63 lines (50 loc) · 1.4 KB
/
development.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: "Development"
on:
pull_request:
jobs:
test:
name: Test application
runs-on: ubuntu-latest
steps:
- name: "☁️ checkout repository"
uses: actions/checkout@v2
- name: "🔧 setup node"
uses: actions/setup-node@v2.1.5
with:
node-version: 16
- name: "🔧 setup cache"
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-pr-${{ hashFiles('**/npm-shrinkwrap.json') }}
restore-keys: |
${{ runner.os }}-node-pr-
- name: "🔧 install npm@7"
run: npm i -g npm@7
- name: "📦 install dependencies"
run: npm ci
- name: "🔍 run tests"
run: npm t
lint:
name: Code standards
runs-on: ubuntu-latest
steps:
- name: "☁️ checkout repository"
uses: actions/checkout@v2
- name: "🔧 setup node"
uses: actions/setup-node@v2.1.5
with:
node-version: 16
- name: "🔧 setup cache"
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-pr-${{ hashFiles('**/npm-shrinkwrap.json') }}
restore-keys: |
${{ runner.os }}-node-pr-
- name: "🔧 install npm@7"
run: npm i -g npm@7
- name: "📦 install dependencies"
run: npm ci
- name: "🔍 lint code"
run: npm run lint