Skip to content

Commit

Permalink
ci: add 'Build test' script to test.yml (#99)
Browse files Browse the repository at this point in the history
  • Loading branch information
lumirlumir authored Nov 13, 2024
1 parent 74f9328 commit 44eb570
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 7 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ jobs:
- name: Set up node_modules
run: npm ci

- name: Build test
run: npm run build --if-present

- name: Test and test coverage
run: npm run coverage

Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ build
coverage

# packages
packages/**/LICENSE
packages/**/LICENSE.md
packages/**/README.md
4 changes: 2 additions & 2 deletions packages/clang-format-git-python/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"main": "build/index.js",
"files": [
"build",
"LICENSE",
"LICENSE.md",
"README.md"
],
"bin": {
Expand Down Expand Up @@ -46,7 +46,7 @@
"scripts": {
"postinstall": "test -d src && npm run build || npm run chmod",
"prepublishOnly": "npm run build",
"build": "npx babel src -d build && npx tsc && cp -r src/script build && cp ../../LICENSE ../../README.md .",
"build": "npx babel src -d build && npx tsc && cp -r src/script build && cp ../../LICENSE.md ../../README.md .",
"postbuild": "npm run chmod",
"test": "node --test",
"chmod": "find ./src/script ./build/script -type f -exec chmod 755 {} + || true"
Expand Down
4 changes: 2 additions & 2 deletions packages/clang-format-git/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"main": "build/index.js",
"files": [
"build",
"LICENSE",
"LICENSE.md",
"README.md"
],
"bin": {
Expand Down Expand Up @@ -45,7 +45,7 @@
"scripts": {
"postinstall": "test -d src && npm run build || npm run chmod",
"prepublishOnly": "npm run build",
"build": "npx babel src -d build && npx tsc && cp -r src/bin build && cp ../../LICENSE ../../README.md .",
"build": "npx babel src -d build && npx tsc && cp -r src/bin build && cp ../../LICENSE.md ../../README.md .",
"postbuild": "npm run chmod",
"test": "node --test",
"chmod": "find ./src/bin ./build/bin -type f -exec chmod 755 {} + || true"
Expand Down
4 changes: 2 additions & 2 deletions packages/clang-format-node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"main": "build/index.js",
"files": [
"build",
"LICENSE",
"LICENSE.md",
"README.md"
],
"bin": {
Expand Down Expand Up @@ -44,7 +44,7 @@
"scripts": {
"postinstall": "test -d src && npm run build || npm run chmod",
"prepublishOnly": "npm run build",
"build": "npx babel src -d build && npx tsc && cp -r src/bin build && cp ../../LICENSE ../../README.md .",
"build": "npx babel src -d build && npx tsc && cp -r src/bin build && cp ../../LICENSE.md ../../README.md .",
"postbuild": "npm run chmod",
"test": "node --test",
"chmod": "find ./src/bin ./build/bin -type f -exec chmod 755 {} + || true"
Expand Down

0 comments on commit 44eb570

Please sign in to comment.