Skip to content

Commit 01c9e02

Browse files
committed
2 parents 15780e4 + c20d384 commit 01c9e02

File tree

5 files changed

+43
-27
lines changed

5 files changed

+43
-27
lines changed

.github/workflows/format.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -76,14 +76,14 @@ jobs:
7676
# - name: Update dependencies
7777

7878
# run: deno run -A https://deno.land/x/udd/main.ts deps.ts *.ts '*/*.ts' '*.json'
79-
# - name: Use Node.js ${{ matrix.node-version }}
80-
# uses: actions/setup-node@v3
81-
# with:
82-
# node-version: ${{ matrix.node-version }}
83-
# - run: |
84-
# npm i -g cnpm
85-
# npx cnpm i
86-
# npx -y prettier --w */*/*.yml */*.yml
79+
- name: Use Node.js ${{ matrix.node-version }}
80+
uses: actions/setup-node@v3
81+
with:
82+
node-version: ${{ matrix.node-version }}
83+
- run: |
84+
npm i -g cnpm
85+
npx cnpm i
86+
npm run format
8787
- name: Create Pull Request
8888
uses: peter-evans/create-pull-request@v3
8989
id: pr

.github/workflows/msbuild.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,5 +72,5 @@ jobs:
7272
- run: C:\hostedtoolcache\windows\xmake\dev\x64\xmake.exe build -v -y -w --project=. "--file=./xmake.lua"
7373
- run: C:\hostedtoolcache\windows\xmake\dev\x64\xmake.exe clean -a
7474
- run: C:\hostedtoolcache\windows\xmake\dev\x64\xmake.exe f -y -v --project=. "--file=./xmake.lua" --mode=test
75-
- run: xmake.exe build -v -y -w --project=. "--file=./xmake.lua" --group=test
75+
- run: xmake.exe build -v -y -w --project=. "--file=./xmake.lua" --group=test
7676
- run: xmake run --group=test

.prettierrc.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
22
"tabWidth": 4,
3-
"singleQuote": false
3+
"singleQuote": false,
4+
"plugins": ["@prettier/plugin-xml"]
45
}

package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,12 @@
1010
"author": "masx200 <34191203+masx200@users.noreply.github.com>",
1111
"license": "MIT",
1212
"description": "#### 介绍",
13-
"scripts": { "format": "prettier --w */*/*.yml */*.yml" },
13+
"scripts": {
14+
"format": "./node_modules/.bin/prettier --w */*/*.yml */*.yml *.xml"
15+
},
1416
"keywords": [],
1517
"devDependencies": {
16-
"prettier": "^2.8.8"
18+
"prettier": "^2.8.8",
19+
"@prettier/plugin-xml": "2.2.0"
1720
}
1821
}

pom.xml

Lines changed: 27 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
<?xml version="1.0" encoding="UTF-8"?>
2-
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3-
xmlns="http://maven.apache.org/POM/4.0.0"
4-
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
1+
<?xml version="1.0" encoding="UTF-8" ?>
2+
<project
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xmlns="http://maven.apache.org/POM/4.0.0"
5+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
6+
>
57
<modelVersion>4.0.0</modelVersion>
68

79
<artifactId>leetcode-test</artifactId>
@@ -87,26 +89,36 @@
8789
</goals>
8890
<configuration>
8991
<sourceDirs>
90-
<sourceDir>reverse-nodes-in-even-length-groups</sourceDir>
91-
<sourceDir>number-of-distinct-averages</sourceDir>
92+
<sourceDir
93+
>reverse-nodes-in-even-length-groups</sourceDir>
94+
<sourceDir
95+
>number-of-distinct-averages</sourceDir>
9296
<source>letter-case-permutation</source>
9397
<source>operations-lcci</source>
94-
<sourceDir>binary-search-tree-iterator</sourceDir>
95-
<sourceDir>construct-binary-search-tree-from-preorder-traversal</sourceDir>
98+
<sourceDir
99+
>binary-search-tree-iterator</sourceDir>
100+
<sourceDir
101+
>construct-binary-search-tree-from-preorder-traversal</sourceDir>
96102
<source>er-cha-shu-ran-se-UGC</source>
97-
<source>er-cha-sou-suo-shu-de-di-kda-jie-dian-lcof</source>
103+
<source
104+
>er-cha-sou-suo-shu-de-di-kda-jie-dian-lcof</source>
98105
<source>utils</source>
99-
<source>minimum-number-of-moves-to-seat-everyone</source>
106+
<source
107+
>minimum-number-of-moves-to-seat-everyone</source>
100108
<source>add-two-integers</source>
101109
<source>design-skiplist</source>
102-
<source>insert-into-a-binary-search-tree</source>
110+
<source
111+
>insert-into-a-binary-search-tree</source>
103112
<source>min-cost-to-connect-all-points</source>
104113
<source>possible-bipartition</source>
105-
<source>reveal-cards-in-increasing-order</source>
106-
<source>serialize-and-deserialize-binary-tree</source>
114+
<source
115+
>reveal-cards-in-increasing-order</source>
116+
<source
117+
>serialize-and-deserialize-binary-tree</source>
107118
<source>three-in-one-lcci</source>
108119
<source>count-ways-to-build-good-string</source>
109-
<sourceDir>split-message-based-on-limit</sourceDir>
120+
<sourceDir
121+
>split-message-based-on-limit</sourceDir>
110122
<source>remove-vowels-from-a-string</source>
111123

112124
<sourceDir>zigzag-iterator</sourceDir>
@@ -241,4 +253,4 @@
241253

242254
</dependencies>
243255

244-
</project>
256+
</project>

0 commit comments

Comments
 (0)