Skip to content

Commit

Permalink
Merge pull request #175 from ligangty/main
Browse files Browse the repository at this point in the history
Change the way of ci and release for npm test
  • Loading branch information
ligangty authored Mar 4, 2024
2 parents f7a5470 + a8230ee commit 9a5eb11
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/pr-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,6 @@ jobs:
repositories: '[{ "id": "sonatype", "url": "https://oss.sonatype.org/content/repositories/snapshots/", "releases": {"enabled": "false"}, "snapshots": {"enabled": "true" }}]'

- name: Build with Maven
run: mvn -B -e verify
run: |
sed -i 's/build: "npm run build-no-test"/build: "npm run build"/g' ./src/main/resources/application.yaml && \
mvn -B -e verify
1 change: 1 addition & 0 deletions src/main/resources/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ quarkus:
install-env:
strict-ssl: false
install: "npm config set strict-ssl false && npm ci"
build: "npm run build-no-test"

# These REST APIs are not needed to show in rest docs
mp:
Expand Down
1 change: 1 addition & 0 deletions src/main/webui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
"scripts": {
"build-dev": "npm run clean && npm run compile-dev && npm run lint && npm run test && npm run deploy && cp ./src/content-browse/html/* ./dist/content-browse/",
"build": "npm run clean && npm run compile && npm run test && npm run lint && npm run deploy && cp ./src/content-browse/html/* ./dist/content-browse/",
"build-no-test": "npm run clean && npm run compile && npm run deploy && cp ./src/content-browse/html/* ./dist/content-browse/",
"clean": "rm -rf ./dist/*",
"compile-dev": "NODE_ENV=development webpack --config ./webpack.config.js && webpack --config ./webpack-content-browse.dev.config.js",
"compile": "NODE_ENV=production webpack --config ./webpack.config-prod.js && webpack --config ./webpack-content-browse.prod.config.js",
Expand Down

0 comments on commit 9a5eb11

Please sign in to comment.