Skip to content

Commit 30d6eb3

Browse files
committed
2 parents 7177d7b + 2ad9de1 commit 30d6eb3

File tree

9 files changed

+3910
-5551
lines changed

9 files changed

+3910
-5551
lines changed

.circleci/config.yml

Lines changed: 0 additions & 45 deletions
This file was deleted.

.github/workflows/default.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
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+
- uses: pnpm/[email protected]
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

.github/workflows/stale.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
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

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
*npm-debug.log*
33
bower_components/
44
node_modules/
5+
package-lock.json
56
vendor/
67
yarn-error.log
78
yarn.lock

README.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,14 @@
22

33
[![npm](https://flat.badgen.net/npm/license/gulp-xml-validator)](https://www.npmjs.org/package/gulp-xml-validator)
44
[![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)
66

77
Gulp plugin to validate XML. Based on `@xmldom/xmldom` and inspired by [grunt-xml-validator](https://github.com/kajyr/grunt-xml-validator).
88

99
## Installation
1010

1111
```sh
12-
# npm
1312
$ npm install gulp-xml-validator --save-dev
14-
15-
# Yarn
16-
$ yarn add gulp-xml-validator --dev
1713
```
1814

1915
## Usage

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ module.exports = function xmlValidator() {
1616
}
1717

1818
if (file.isStream()) {
19-
callback(new PluginError(meta, 'Streaming not supported'));
19+
callback(PluginError(meta, 'Streaming not supported'));
2020
return;
2121
}
2222

0 commit comments

Comments
 (0)