File tree Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Lint
2
+
3
+ on :
4
+ push :
5
+ branches : main
6
+ pull_request :
7
+ branches : ' *'
8
+
9
+ jobs :
10
+ build :
11
+ runs-on : ubuntu-latest
12
+ steps :
13
+ - name : Checkout
14
+ uses : actions/checkout@v2
15
+ - name : Install node
16
+ uses : actions/setup-node@v1
17
+ with :
18
+ node-version : ' 12.x'
19
+ - name : Cache node modules
20
+ uses : actions/cache@v3
21
+ env :
22
+ cache-name : cache-node-modules
23
+ with :
24
+ # npm cache files are stored in `~/.npm` on Linux/macOS
25
+ path : ~/.npm
26
+ key : ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
27
+ restore-keys : |
28
+ ${{ runner.os }}-build-${{ env.cache-name }}-
29
+ ${{ runner.os }}-build-
30
+ ${{ runner.os }}-
31
+ - name : Install dependencies
32
+ run : |
33
+ cd pyscriptjs
34
+ npm install
35
+ - name : Build pyscript
36
+ run : |
37
+ cd pyscriptjs
38
+ npm run lint
You can’t perform that action at this time.
0 commit comments