File tree 9 files changed +3910
-5551
lines changed
9 files changed +3910
-5551
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ name : CI
2
+
3
+ on :
4
+ - push
5
+ - pull_request
6
+
7
+ jobs :
8
+ default :
9
+ runs-on : ${{ matrix.os }}
10
+ strategy :
11
+ matrix :
12
+ node-version : ['lts/*', '*']
13
+ os : [ubuntu-latest]
14
+
15
+ steps :
16
+ - uses : actions/checkout@v3
17
+ with :
18
+ fetch-depth : 1
19
+
20
+ - uses : actions/setup-node@v3
21
+ with :
22
+ node-version : ${{ matrix.node-version }}
23
+
24
+
25
+ name : Install pnpm
26
+ id : pnpm-install
27
+ with :
28
+ version : 7
29
+ run_install : false
30
+
31
+ - name : Get pnpm store directory
32
+ id : pnpm-cache
33
+ run : |
34
+ echo "::set-output name=pnpm_cache_dir::$(pnpm store path)"
35
+
36
+ - uses : actions/cache@v3
37
+ name : Setup pnpm cache
38
+ with :
39
+ path : ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
40
+ key : ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
41
+ restore-keys : |
42
+ ${{ runner.os }}-pnpm-store-
43
+
44
+ - name : Install dependencies
45
+ run : pnpm install --frozen-lockfile --strict-peer-dependencies
46
+
47
+ - name : Lint Source
48
+ run : pnpm run --if-present lint
49
+
50
+ - name : Build Source
51
+ run : pnpm run --if-present build
52
+
53
+ - name : Run Tests
54
+ run : pnpm run --if-present test
Original file line number Diff line number Diff line change
1
+ name : ' Stale issues and PR'
2
+ on :
3
+ schedule :
4
+ - cron : ' 30 1 * * *'
5
+
6
+ jobs :
7
+ stale :
8
+ runs-on : ubuntu-latest
9
+ steps :
10
+ - uses : actions/stale@v4
11
+ with :
12
+ stale-issue-label : stale
13
+ stale-pr-label : stale
14
+ stale-issue-message : ' This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 14 days.'
15
+ stale-pr-message : ' This PR is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 14 days.'
16
+ close-issue-message : ' This issue was closed because it has been stalled for 14 days with no activity.'
17
+ close-pr-message : ' This PR was closed because it has been stalled for 14 days with no activity.'
18
+ days-before-issue-stale : 90
19
+ days-before-pr-stale : 90
20
+ days-before-issue-close : 30
21
+ days-before-pr-close : 30
Original file line number Diff line number Diff line change 2
2
* npm-debug.log *
3
3
bower_components /
4
4
node_modules /
5
+ package-lock.json
5
6
vendor /
6
7
yarn-error.log
7
8
yarn.lock
Original file line number Diff line number Diff line change 2
2
3
3
[ ![ npm] ( https://flat.badgen.net/npm/license/gulp-xml-validator )] ( https://www.npmjs.org/package/gulp-xml-validator )
4
4
[ ![ npm] ( https://flat.badgen.net/npm/v/gulp-xml-validator )] ( https://www.npmjs.org/package/gulp-xml-validator )
5
- [ ![ CircleCI ] ( https://flat.badgen.net/circleci/ github/idleberg/gulp-xml-validator )] ( https://circleci .com/gh/ idleberg/gulp-xml-validator )
5
+ [ ![ CI ] ( https://img.shields.io/ github/workflow/status/ idleberg/gulp-xml-validator/CI?style=flat-square )] ( https://github .com/idleberg/gulp-xml-validator/actions )
6
6
7
7
Gulp plugin to validate XML. Based on ` @xmldom/xmldom ` and inspired by [ grunt-xml-validator] ( https://github.com/kajyr/grunt-xml-validator ) .
8
8
9
9
## Installation
10
10
11
11
``` sh
12
- # npm
13
12
$ npm install gulp-xml-validator --save-dev
14
-
15
- # Yarn
16
- $ yarn add gulp-xml-validator --dev
17
13
```
18
14
19
15
## Usage
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ module.exports = function xmlValidator() {
16
16
}
17
17
18
18
if ( file . isStream ( ) ) {
19
- callback ( new PluginError ( meta , 'Streaming not supported' ) ) ;
19
+ callback ( PluginError ( meta , 'Streaming not supported' ) ) ;
20
20
return ;
21
21
}
22
22
You can’t perform that action at this time.
0 commit comments