Skip to content

Commit 44eb570

Browse files
authored
ci: add 'Build test' script to test.yml (#99)
1 parent 74f9328 commit 44eb570

File tree

5 files changed

+10
-7
lines changed

5 files changed

+10
-7
lines changed

.github/workflows/test.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ jobs:
3030
- name: Set up node_modules
3131
run: npm ci
3232

33+
- name: Build test
34+
run: npm run build --if-present
35+
3336
- name: Test and test coverage
3437
run: npm run coverage
3538

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ build
1515
coverage
1616

1717
# packages
18-
packages/**/LICENSE
18+
packages/**/LICENSE.md
1919
packages/**/README.md

packages/clang-format-git-python/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"main": "build/index.js",
66
"files": [
77
"build",
8-
"LICENSE",
8+
"LICENSE.md",
99
"README.md"
1010
],
1111
"bin": {
@@ -46,7 +46,7 @@
4646
"scripts": {
4747
"postinstall": "test -d src && npm run build || npm run chmod",
4848
"prepublishOnly": "npm run build",
49-
"build": "npx babel src -d build && npx tsc && cp -r src/script build && cp ../../LICENSE ../../README.md .",
49+
"build": "npx babel src -d build && npx tsc && cp -r src/script build && cp ../../LICENSE.md ../../README.md .",
5050
"postbuild": "npm run chmod",
5151
"test": "node --test",
5252
"chmod": "find ./src/script ./build/script -type f -exec chmod 755 {} + || true"

packages/clang-format-git/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"main": "build/index.js",
66
"files": [
77
"build",
8-
"LICENSE",
8+
"LICENSE.md",
99
"README.md"
1010
],
1111
"bin": {
@@ -45,7 +45,7 @@
4545
"scripts": {
4646
"postinstall": "test -d src && npm run build || npm run chmod",
4747
"prepublishOnly": "npm run build",
48-
"build": "npx babel src -d build && npx tsc && cp -r src/bin build && cp ../../LICENSE ../../README.md .",
48+
"build": "npx babel src -d build && npx tsc && cp -r src/bin build && cp ../../LICENSE.md ../../README.md .",
4949
"postbuild": "npm run chmod",
5050
"test": "node --test",
5151
"chmod": "find ./src/bin ./build/bin -type f -exec chmod 755 {} + || true"

packages/clang-format-node/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"main": "build/index.js",
66
"files": [
77
"build",
8-
"LICENSE",
8+
"LICENSE.md",
99
"README.md"
1010
],
1111
"bin": {
@@ -44,7 +44,7 @@
4444
"scripts": {
4545
"postinstall": "test -d src && npm run build || npm run chmod",
4646
"prepublishOnly": "npm run build",
47-
"build": "npx babel src -d build && npx tsc && cp -r src/bin build && cp ../../LICENSE ../../README.md .",
47+
"build": "npx babel src -d build && npx tsc && cp -r src/bin build && cp ../../LICENSE.md ../../README.md .",
4848
"postbuild": "npm run chmod",
4949
"test": "node --test",
5050
"chmod": "find ./src/bin ./build/bin -type f -exec chmod 755 {} + || true"

0 commit comments

Comments
 (0)