Skip to content

Commit bacbb6f

Browse files
committed
chore: update project config
1 parent bd17fb4 commit bacbb6f

File tree

2 files changed

+13
-64
lines changed

2 files changed

+13
-64
lines changed

.github/workflows/continuous-integration.yml

Lines changed: 4 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -9,54 +9,9 @@ on:
99
# - cron: "0 23 * * 6"
1010

1111
jobs:
12-
# test:
13-
# strategy:
14-
# matrix:
15-
# PLATFORM:
16-
# - "ubuntu-latest"
17-
# # - "macos-latest"
18-
# # - "windows-latest"
19-
# NODE:
20-
# # - "13"
21-
# - "12"
22-
# # - "10"
23-
# # exclude:
24-
# # - PLATFORM: "macos-latest"
25-
# # NODE: "12"
26-
27-
# name: Test on node ${{ matrix.NODE }} and ${{ matrix.PLATFORM }}
28-
# runs-on: ${{ matrix.PLATFORM }}
29-
# steps:
30-
# - name: Checkout
31-
# uses: actions/checkout@master
32-
33-
# - name: Setup Node.js
34-
# uses: actions/setup-node@master
35-
# with:
36-
# node-version: ${{ matrix.NODE }}
37-
38-
# - name: Install Dependencies
39-
# run: yarn
40-
41-
# - name: Run Test
42-
# run: yarn test-coverage
43-
44-
# - name: Upload Coverage Parallel
45-
# uses: coverallsapp/github-action@master
46-
# if: success()
47-
# with:
48-
# github-token: ${{ secrets.GITHUB_TOKEN }}
49-
# parallel: true
50-
51-
# - name: Upload Coverage Finished
52-
# uses: coverallsapp/github-action@master
53-
# if: success()
54-
# with:
55-
# github-token: ${{ secrets.GITHUB_TOKEN }}
56-
# parallel-finished: true
57-
58-
test-dist:
12+
test:
5913
strategy:
14+
fail-fast: false
6015
matrix:
6116
PLATFORM:
6217
- "ubuntu-latest"
@@ -100,19 +55,12 @@ jobs:
10055
env:
10156
DISPLAY: :99
10257

103-
- name: Upload Coverage Parallel
58+
- name: Upload Coverage
10459
uses: coverallsapp/github-action@master
10560
if: success()
61+
continue-on-error: true
10662
with:
10763
github-token: ${{ secrets.GITHUB_TOKEN }}
108-
parallel: true
109-
110-
- name: Upload Coverage Finished
111-
uses: coverallsapp/github-action@master
112-
if: success()
113-
with:
114-
github-token: ${{ secrets.GITHUB_TOKEN }}
115-
parallel-finished: true
11664

11765
lint:
11866
name: Lint

package.json

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,12 @@
3838
"format": "run-p format:*",
3939
"format:eslint": "yarn lint:eslint --fix",
4040
"format:markdown": "yarn lint:markdown --fix",
41+
"format:package-json": "sort-package-json \"package.json\" \"packages/*/package.json\"",
4142
"format:prettier": "yarn lint:prettier --write",
42-
"format:sort-package-json": "sort-package-json \"package.json\" \"packages/*/package.json\"",
4343
"lint": "run-p lint:*",
4444
"lint:eslint": "eslint \"**/*.{js,mjs,vue}\"",
4545
"lint:markdown": "markdownlint \"**/*.md\" --ignore \"**/node_modules/**\"",
46+
"lint:package-json": "yarn run format:package-json --check",
4647
"lint:prettier": "prettier \"**/*.{css,html,js,json,less,md,scss,ts,vue,yaml,yml}\" --check",
4748
"release": "run-s lint build format test dist",
4849
"test": "ava",
@@ -53,6 +54,13 @@
5354
"path": "./node_modules/cz-conventional-changelog"
5455
}
5556
},
57+
"ava": {
58+
"helpers": [
59+
"test/helpers/**/*"
60+
],
61+
"require": "esm",
62+
"verbose": true
63+
},
5664
"dependencies": {
5765
"ansi-colors": "4.1.1",
5866
"clipboardy": "2.1.0",
@@ -91,12 +99,5 @@
9199
"publishConfig": {
92100
"access": "public",
93101
"registry": "https://registry.npmjs.org/"
94-
},
95-
"ava": {
96-
"require": "esm",
97-
"verbose": true,
98-
"helpers": [
99-
"test/helpers/**/*"
100-
]
101102
}
102103
}

0 commit comments

Comments
 (0)