Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change npm registry to nexus for CI test and enable turbo remote cache #2535

Merged
merged 10 commits into from
Apr 2, 2024
Prev Previous commit
Next Next commit
Change npm registry to nexus for CI test
  • Loading branch information
hientominh committed Mar 29, 2024
commit 2bb7cf03bfafafb7734debe07e78fbdd8ec2c30d
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
Loading