Skip to content

Commit

Permalink
Change npm registry to nexus for CI test
Browse files Browse the repository at this point in the history
  • Loading branch information
hientominh committed Mar 29, 2024
1 parent e60807f commit 2bb7cf0
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3,512 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/jan-electron-linter-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 62,8 @@ jobs:
- name: Linter and test
run: |
npm config set registry https://nexus.jan.ai/repository/jan-npm/ --global
yarn config set registry https://nexus.jan.ai/repository/jan-npm/ --global
make test
env:
CSC_IDENTITY_AUTO_DISCOVERY: "false"
Expand Down Expand Up @@ -101,6 103,8 @@ jobs:
- name: Linter and test
shell: powershell
run: |
npm config set registry https://nexus.jan.ai/repository/jan-npm/ --global
yarn config set registry https://nexus.jan.ai/repository/jan-npm/ --global
make test
test-on-windows-pr:
if: github.event_name == 'pull_request'
Expand Down Expand Up @@ -133,6 137,8 @@ jobs:
- name: Linter and test
shell: powershell
run: |
npm config set registry https://nexus.jan.ai/repository/jan-npm/ --global
yarn config set registry https://nexus.jan.ai/repository/jan-npm/ --global
make test
test-on-ubuntu:
Expand Down Expand Up @@ -162,4 168,6 @@ jobs:
run: |
export DISPLAY=$(w -h | awk 'NR==1 {print $2}')
echo -e "Display ID: $DISPLAY"
npm config set registry https://nexus.jan.ai/repository/jan-npm/ --global
yarn config set registry https://nexus.jan.ai/repository/jan-npm/ --global
make test
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 55,7 @@ clean:
ifeq ($(OS),Windows_NT)
powershell -Command "Get-ChildItem -Path . -Include node_modules, .next, dist, build, out -Recurse -Directory | Remove-Item -Recurse -Force"
powershell -Command "Get-ChildItem -Path . -Include package-lock.json -Recurse -File | Remove-Item -Recurse -Force"
powershell -Command "Get-ChildItem -Path . -Include yarn.lock -Recurse -File | Remove-Item -Recurse -Force"
powershell -Command "Remove-Item -Recurse -Force ./pre-install/*.tgz"
powershell -Command "Remove-Item -Recurse -Force ./electron/pre-install/*.tgz"
powershell -Command "if (Test-Path \"$($env:USERPROFILE)\jan\extensions\") { Remove-Item -Path \"$($env:USERPROFILE)\jan\extensions\" -Recurse -Force }"
Expand All @@ -65,6 66,7 @@ else ifeq ($(shell uname -s),Linux)
find . -name "build" -type d -exec rm -rf '{}'
find . -name "out" -type d -exec rm -rf '{}'
find . -name "packake-lock.json" -type f -exec rm -rf '{}'
find . -name "yarn.lock" -type f -exec rm -rf '{}'
rm -rf ./pre-install/*.tgz
rm -rf ./electron/pre-install/*.tgz
rm -rf "~/jan/extensions"
Expand All @@ -76,6 78,7 @@ else
find . -name "build" -type d -exec rm -rf '{}'
find . -name "out" -type d -exec rm -rf '{}'
find . -name "packake-lock.json" -type f -exec rm -rf '{}'
find . -name "yarn.lock" -type f -exec rm -rf '{}'
rm -rf ./pre-install/*.tgz
rm -rf ./electron/pre-install/*.tgz
rm -rf ~/jan/extensions
Expand Down
Loading

0 comments on commit 2bb7cf0

Please sign in to comment.