-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Fix tests from upstream changes and add testing to lint staged and ci #4127
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
Changes from all commits
2cee2ec
83ccfb9
4d91cbe
483fc5d
0aec99f
55a2ae4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -78,26 +78,6 @@ jobs: | |
| dpkg-dev \ | ||
| protobuf-compiler | ||
|
|
||
| - name: Pre-build cleanup | ||
| run: | | ||
| echo "Performing aggressive pre-build cleanup..." | ||
| # Clean npm cache | ||
| npm cache clean --force || true | ||
| # Clean any previous build artifacts | ||
| rm -rf target || true | ||
| # Clean Homebrew cache (if exists) | ||
| brew cleanup || true | ||
| # Remove unnecessary large directories | ||
| sudo rm -rf /usr/share/dotnet || true | ||
| sudo rm -rf /usr/local/lib/android || true | ||
| sudo rm -rf /opt/ghc || true | ||
| sudo rm -rf /usr/local/share/boost || true | ||
| # Clean apt cache | ||
| sudo apt-get clean || true | ||
| sudo apt-get autoremove -y || true | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same here, just remove the whole step |
||
| # Check disk space after cleanup | ||
| df -h | ||
|
|
||
| - name: Activate hermit and set CARGO_HOME | ||
| run: | | ||
| source bin/activate-hermit | ||
|
|
@@ -154,11 +134,20 @@ jobs: | |
| chmod +x ui/desktop/src/bin/temporal-service | ||
| ls -la ui/desktop/src/bin/ | ||
|
|
||
| - name: Cache npm dependencies | ||
| uses: actions/cache@2f8e54208210a422b2efd51efaa6bd6d7ca8920f # pin@v3 | ||
| with: | ||
| path: | | ||
| ui/desktop/node_modules | ||
| .hermit/node/cache | ||
| key: linux-npm-cache-v1-${{ runner.os }}-${{ hashFiles('ui/desktop/package-lock.json') }} | ||
| restore-keys: | | ||
| linux-npm-cache-v1-${{ runner.os }}- | ||
|
|
||
| - name: Install npm dependencies | ||
| run: | | ||
| source ./bin/activate-hermit | ||
| cd ui/desktop | ||
| npm cache clean --force || true | ||
|
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @michaelneale do we need this npm cache clean with linux? |
||
| npm install | ||
| # Verify installation | ||
| ls -la node_modules/.bin/ | head -5 | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -107,22 +107,6 @@ jobs: | |
| cd ui/desktop | ||
| npm version "${VERSION}" --no-git-tag-version --allow-same-version | ||
|
|
||
| # Pre-build cleanup to ensure enough disk space | ||
| - name: Pre-build cleanup | ||
| run: | | ||
| source ./bin/activate-hermit | ||
| echo "Performing pre-build cleanup..." | ||
| # Clean npm cache | ||
| npm cache clean --force || true | ||
| # Clean any previous build artifacts | ||
| rm -rf target || true | ||
| # Clean Homebrew cache | ||
| brew cleanup || true | ||
| # Remove unnecessary large directories | ||
| rm -rf ~/Library/Caches/* || true | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. and here |
||
| # Check disk space after cleanup | ||
| df -h | ||
|
|
||
| - name: Cache Cargo registry | ||
| uses: actions/cache@2f8e54208210a422b2efd51efaa6bd6d7ca8920f # pin@v3 | ||
| with: | ||
|
|
@@ -191,6 +175,16 @@ jobs: | |
| cp temporal-service/temporal-service ui/desktop/src/bin/temporal-service | ||
| cp bin/temporal ui/desktop/src/bin/temporal | ||
|
|
||
| - name: Cache npm dependencies | ||
| uses: actions/cache@2f8e54208210a422b2efd51efaa6bd6d7ca8920f # pin@v3 | ||
| with: | ||
| path: | | ||
| ui/desktop/node_modules | ||
| .hermit/node/cache | ||
| key: macos-npm-cache-v1-${{ runner.os }}-${{ hashFiles('ui/desktop/package-lock.json') }} | ||
| restore-keys: | | ||
| macos-npm-cache-v1-${{ runner.os }}- | ||
|
|
||
| - name: Install dependencies | ||
| run: source ../../bin/activate-hermit && npm ci | ||
| working-directory: ui/desktop | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you can remove this whole step now, all that's left is activate hermit but that would only be until the end of the step execution, so effectively all it's doing is dh -h