Fix tests from upstream changes and add testing to lint staged and ci (#4127)

This commit is contained in:
Zane 2025-08-19 09:09:34 -07:00 committed by GitHub
parent 5c1789a6fc
commit 867752a71e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 75 additions and 59 deletions

View file

@ -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
# 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
npm install
# Verify installation
ls -la node_modules/.bin/ | head -5