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

@ -109,6 +109,16 @@ jobs:
- name: Checkout Code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # pin@v4
- name: Cache npm dependencies
uses: actions/cache@2f8e54208210a422b2efd51efaa6bd6d7ca8920f # pin@v3
with:
path: |
ui/desktop/node_modules
.hermit/node/cache
key: ci-npm-cache-v1-${{ runner.os }}-${{ hashFiles('ui/desktop/package-lock.json') }}
restore-keys: |
ci-npm-cache-v1-${{ runner.os }}-
- name: Install Dependencies
run: source ../../bin/activate-hermit && npm ci
working-directory: ui/desktop
@ -117,6 +127,10 @@ jobs:
run: source ../../bin/activate-hermit && npm run lint:check
working-directory: ui/desktop
- name: Run Tests
run: source ../../bin/activate-hermit && npm run test:run
working-directory: ui/desktop
# Faster Desktop App build for PRs only
bundle-desktop-unsigned:
uses: ./.github/workflows/bundle-desktop.yml