File tree 2 files changed +16
-5
lines changed 2 files changed +16
-5
lines changed Original file line number Diff line number Diff line change 5
5
branches : main
6
6
paths :
7
7
- pyscriptjs/**
8
+ - .github/workflows/** # Test that workflows work when changed
8
9
pull_request : # Run on any PR that modifies files in pyscriptjs/
10
+ paths :
11
+ - pyscriptjs/**
12
+ - .github/workflows/**
13
+
9
14
10
15
jobs :
11
16
build :
Original file line number Diff line number Diff line change 1
1
name : Lint
2
2
3
3
on :
4
- push :
4
+ push : # Only run on merges into master that modify files under pyscriptjs/
5
5
branches : main
6
- pull_request :
7
- branches : ' *'
6
+ paths :
7
+ - pyscriptjs/**
8
+ - .github/workflows/** # Test that workflows work when changed
9
+ pull_request : # Run on any PR that modifies files in pyscriptjs/
10
+ paths :
11
+ - pyscriptjs/**
12
+ - .github/workflows/**
8
13
9
14
jobs :
10
15
build :
11
16
runs-on : ubuntu-latest
17
+ defaults :
18
+ run :
19
+ working-directory : ./pyscriptjs
12
20
steps :
13
21
- name : Checkout
14
22
uses : actions/checkout@v3
30
38
${{ runner.os }}-
31
39
- name : Install dependencies
32
40
run : |
33
- cd pyscriptjs
34
41
npm install
35
42
- name : Run linter
36
43
run : |
37
- cd pyscriptjs
38
44
npm run lint
You can’t perform that action at this time.
0 commit comments