File tree Expand file tree Collapse file tree 3 files changed +29
-5
lines changed Expand file tree Collapse file tree 3 files changed +29
-5
lines changed Original file line number Diff line number Diff line change 1
1
name : Run ESLint on your changes only
2
+
2
3
on :
3
4
pull_request :
5
+ paths-ignore :
6
+ - " **.md"
7
+
8
+ env :
9
+ HUSKY : 0
10
+
4
11
jobs :
5
12
build :
6
13
runs-on : ubuntu-latest
7
14
steps :
8
15
- uses : actions/checkout@v3
16
+ - uses : actions/setup-node@v3
17
+ with :
18
+ node-version : 16
19
+ cache : " yarn"
9
20
- name : Install modules
10
- run : yarn
21
+ run : yarn install --frozen-lockfile
11
22
- name : Link the plugin
12
23
run : |
13
24
yarn link
Original file line number Diff line number Diff line change @@ -7,10 +7,10 @@ module.exports = {
7
7
coveragePathIgnorePatterns : [ ".test-d.ts" ] ,
8
8
coverageThreshold : {
9
9
global : {
10
- statements : 90 ,
11
- branches : 90 ,
12
- functions : 90 ,
13
- lines : 90 ,
10
+ statements : 80 ,
11
+ branches : 80 ,
12
+ functions : 80 ,
13
+ lines : 80 ,
14
14
} ,
15
15
} ,
16
16
} ;
Original file line number Diff line number Diff line change @@ -3,6 +3,19 @@ const OLD_ENV = process.env;
3
3
beforeEach ( ( ) => {
4
4
jest . resetModules ( ) ; // Most important - it clears the cache
5
5
process . env = { ...OLD_ENV } ; // Make a copy
6
+
7
+ // When running in CI, we want to avoid triggering the "Too many CI providers
8
+ // found"-error, so we delete all known `diffBranch`-occurrences here.
9
+ delete process . env . SYSTEM_PULLREQUEST_TARGETBRANCH ;
10
+ delete process . env . bamboo_repository_pr_targetBranch ;
11
+ delete process . env . BITBUCKET_PR_DESTINATION_BRANCH ;
12
+ delete process . env . BUDDY_EXECUTION_PULL_REQUEST_BASE_BRANCH ;
13
+ delete process . env . DRONE_TARGET_BRANCH ;
14
+ delete process . env . GITHUB_BASE_REF ;
15
+ delete process . env . APPVEYOR_PULL_REQUEST_NUMBER ;
16
+ delete process . env . APPVEYOR_REPO_BRANCH ;
17
+ delete process . env . CI_EXTERNAL_PULL_REQUEST_TARGET_BRANCH_NAME ;
18
+ delete process . env . TRAVIS_BRANCH ;
6
19
} ) ;
7
20
8
21
describe ( "guessBranch" , ( ) => {
You can’t perform that action at this time.
0 commit comments