-
Notifications
You must be signed in to change notification settings - Fork 13
172 lines (166 loc) · 4.76 KB
/
lint.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
name: Lint
run-name: "Lint: ${{ github.event_name == 'push' && format('[{0}] {1}', github.ref_name, github.event.head_commit.message) || github.event_name == 'pull_request' && format('PR #{0}: {1}', github.event.pull_request.number, github.event.pull_request.title) || github.ref_name }}"
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
lint-data:
name: "Lint: Data"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: 18.15.0
- name: Cache node_modules
uses: actions/cache@v2
env:
cache-name: data-node_modules
with:
path: Data/node_modules
key: ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('Data/yarn.lock') }}
restore-keys: |
${{ runner.os }}-${{ env.cache-name }}-
- name: Yarn Install
run: |
cd Data
yarn install
- name: Lint
run: |
cd Data
yarn run lint
lint-app:
name: "Lint: App"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: 18.15.0
- name: Cache node_modules
uses: actions/cache@v2
env:
cache-name: app-node_modules
with:
path: App/node_modules
key: ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('App/yarn.lock') }}
restore-keys: |
${{ runner.os }}-${{ env.cache-name }}-
- name: Yarn Install
run: |
cd App
yarn install
- name: Lint
run: |
cd App
yarn run lint
lint-epc-utils:
name: "Lint: epc-utils"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: 18.15.0
- name: Cache node_modules
uses: actions/cache@v2
env:
cache-name: epc-utils-node_modules
with:
path: packages/epc-utils/node_modules
key: ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('packages/epc-utils/yarn.lock') }}
restore-keys: |
${{ runner.os }}-${{ env.cache-name }}-
- name: Yarn Install
run: |
cd packages/epc-utils
yarn install
- name: Lint
run: |
cd packages/epc-utils
yarn run lint
lint-data-storage-couchdb:
name: "Lint: data-storage-couchdb"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: 18.15.0
- name: Cache node_modules
uses: actions/cache@v2
env:
cache-name: data-storage-couchdb-node_modules
with:
path: packages/data-storage-couchdb/node_modules
key: ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('packages/data-storage-couchdb/yarn.lock') }}
restore-keys: |
${{ runner.os }}-${{ env.cache-name }}-
- name: Yarn Install
run: |
cd packages/data-storage-couchdb
yarn install
- name: Lint
run: |
cd packages/data-storage-couchdb
yarn run lint
lint-integration-airtable:
name: "Lint: integration-airtable"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: 18.15.0
- name: Cache node_modules
uses: actions/cache@v2
env:
cache-name: integration-airtable-node_modules
with:
path: packages/integration-airtable/node_modules
key: ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('packages/integration-airtable/yarn.lock') }}
restore-keys: |
${{ runner.os }}-${{ env.cache-name }}-
- name: Yarn Install
run: |
cd packages/integration-airtable
yarn install
- name: Lint
run: |
cd packages/integration-airtable
yarn run lint
lint-integration-snipe-it:
name: "Lint: integration-snipe-it"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: 18.15.0
- name: Cache node_modules
uses: actions/cache@v2
env:
cache-name: integration-snipe-it-node_modules
with:
path: packages/integration-snipe-it/node_modules
key: ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('packages/integration-snipe-it/yarn.lock') }}
restore-keys: |
${{ runner.os }}-${{ env.cache-name }}-
- name: Yarn Install
run: |
cd packages/integration-snipe-it
yarn install
- name: Lint
run: |
cd packages/integration-snipe-it
yarn run lint