diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml new file mode 100644 index 0000000..f635404 --- /dev/null +++ b/.github/workflows/pr.yml @@ -0,0 +1,32 @@ +name: CI +on: + pull_request: + branches: + - master +jobs: + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: c-hive/gha-yarn-cache@v1 + - run: yarn --frozen-lockfile + - run: npm run lint + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: c-hive/gha-yarn-cache@v1 + - run: yarn --frozen-lockfile + - run: npm run test + - name: Coveralls + uses: coverallsapp/github-action@master + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + path-to-lcov: ./test/coverage/lcov.info + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: c-hive/gha-yarn-cache@v1 + - run: yarn --frozen-lockfile + - run: npm run build:example diff --git a/package.json b/package.json index 26fd593..3fdbaef 100644 --- a/package.json +++ b/package.json @@ -60,7 +60,7 @@ "markdown-it-anchor": "6.0.0", "mocha": "8.1.3", "nyc": "15.1.0", - "style-loader": "1.3.0", + "style-loader": "2.0.0", "vue": "2.6.12", "vue-loader": "15.9.3", "vue-template-compiler": "2.6.12", diff --git a/yarn.lock b/yarn.lock index 4bd1319..1b97819 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1066,7 +1066,7 @@ resolved "https://registry.npm.taobao.org/@types/json-schema/download/@types/json-schema-7.0.4.tgz?cache=0&sync_timestamp=1588200629858&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40types%2Fjson-schema%2Fdownload%2F%40types%2Fjson-schema-7.0.4.tgz#38fd73ddfd9b55abb1e1b2ed578cb55bd7b7d339" integrity sha1-OP1z3f2bVaux4bLtV4y1W9e30zk= -"@types/json-schema@^7.0.5": +"@types/json-schema@^7.0.5", "@types/json-schema@^7.0.6": version "7.0.6" resolved "https://registry.npm.taobao.org/@types/json-schema/download/@types/json-schema-7.0.6.tgz?cache=0&sync_timestamp=1598910377599&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40types%2Fjson-schema%2Fdownload%2F%40types%2Fjson-schema-7.0.6.tgz#f4c7ec43e81b319a9815115031709f26987891f0" integrity sha1-9MfsQ+gbMZqYFRFQMXCfJph4kfA= @@ -1318,7 +1318,7 @@ ajv@^6.1.0, ajv@^6.10.0, ajv@^6.10.2, ajv@^6.12.2, ajv@^6.5.5: json-schema-traverse "^0.4.1" uri-js "^4.2.2" -ajv@^6.12.4: +ajv@^6.12.4, ajv@^6.12.5: version "6.12.5" resolved "https://registry.npm.taobao.org/ajv/download/ajv-6.12.5.tgz?cache=0&sync_timestamp=1600887083528&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fajv%2Fdownload%2Fajv-6.12.5.tgz#19b0e8bae8f476e5ba666300387775fb1a00a4da" integrity sha1-GbDouuj0duW6ZmMAOHd1+xoApNo= @@ -6325,7 +6325,7 @@ schema-utils@^2.6.5: ajv "^6.12.2" ajv-keywords "^3.4.1" -schema-utils@^2.7.0, schema-utils@^2.7.1: +schema-utils@^2.7.1: version "2.7.1" resolved "https://registry.npm.taobao.org/schema-utils/download/schema-utils-2.7.1.tgz#1ca4f32d1b24c590c203b8e7a50bf0ea4cd394d7" integrity sha1-HKTzLRskxZDCA7jnpQvw6kzTlNc= @@ -6334,6 +6334,15 @@ schema-utils@^2.7.0, schema-utils@^2.7.1: ajv "^6.12.4" ajv-keywords "^3.5.2" +schema-utils@^3.0.0: + version "3.0.0" + resolved "https://registry.npm.taobao.org/schema-utils/download/schema-utils-3.0.0.tgz#67502f6aa2b66a2d4032b4279a2944978a0913ef" + integrity sha1-Z1AvaqK2ai1AMrQnmilEl4oJE+8= + dependencies: + "@types/json-schema" "^7.0.6" + ajv "^6.12.5" + ajv-keywords "^3.5.2" + select-hose@^2.0.0: version "2.0.0" resolved "https://registry.npm.taobao.org/select-hose/download/select-hose-2.0.0.tgz#625d8658f865af43ec962bfc376a37359a4994ca" @@ -6872,13 +6881,13 @@ strip-json-comments@^3.1.1: resolved "https://registry.npm.taobao.org/strip-json-comments/download/strip-json-comments-3.1.1.tgz#31f1281b3832630434831c310c01cccda8cbe006" integrity sha1-MfEoGzgyYwQ0gxwxDAHMzajL4AY= -style-loader@1.3.0: - version "1.3.0" - resolved "https://registry.npm.taobao.org/style-loader/download/style-loader-1.3.0.tgz?cache=0&sync_timestamp=1601740508116&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fstyle-loader%2Fdownload%2Fstyle-loader-1.3.0.tgz#828b4a3b3b7e7aa5847ce7bae9e874512114249e" - integrity sha1-gotKOzt+eqWEfOe66eh0USEUJJ4= +style-loader@2.0.0: + version "2.0.0" + resolved "https://registry.npm.taobao.org/style-loader/download/style-loader-2.0.0.tgz#9669602fd4690740eaaec137799a03addbbc393c" + integrity sha1-lmlgL9RpB0DqrsE3eZoDrdu8OTw= dependencies: loader-utils "^2.0.0" - schema-utils "^2.7.0" + schema-utils "^3.0.0" supports-color@7.1.0, supports-color@^7.1.0: version "7.1.0"