Skip to content

Commit

Permalink
Update test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
viferga authored Jan 30, 2024
1 parent 7a0ea25 commit 39b1221
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,30 @@ jobs:
with:
fetch-depth: 0

- name: Clean up existing dependencies for avoiding conflicts
run: |
# Remove all local files related to npm/node to avoid conflict
sudo rm -rf /usr/local/bin/node
sudo rm -rf /usr/local/bin/npm
sudo rm -rf /usr/local/bin/npx
sudo rm -rf /usr/local/include/node
sudo rm -rf /usr/local/lib/dtrace/node.d
sudo rm -rf /usr/local/lib/node_modules/npm
sudo rm -rf /usr/local/share/doc/node
sudo rm -rf /usr/local/share/man/man1/node.1
sudo rm -rf /usr/local/share/systemtap/tapset/node.stp
# Uninstall npm and node globally
brew uninstall npm
brew uninstall node
brew unlink node@16
# Remove all files related to node
sudo rm -rf /usr/local/lib/node_modules
sudo rm -rf /usr/local/include/node
sudo rm -rf /usr/local/lib/node
sudo rm -rf /usr/local/bin/corepack
- name: Build
run: ./build.sh

Expand Down

0 comments on commit 39b1221

Please sign in to comment.