chore: update ui package #21
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Unit Tests | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| jobs: | |
| unit-tests: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| steps: | |
| - name: 'Checkout code' | |
| uses: actions/checkout@v4 | |
| - name: 'Use Node.js' | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '22.x' | |
| - name: 'Install npm dependencies' | |
| run: npm ci | |
| - name: 'Run unit tests' | |
| run: npm run test:unit | |
| dbus-integration-tests: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| steps: | |
| - name: 'Checkout code' | |
| uses: actions/checkout@v4 | |
| - name: 'Use Node.js' | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '22.x' | |
| - name: 'Install DBus' | |
| run: sudo apt-get update && sudo apt-get install -y dbus dbus-x11 | |
| - name: 'Install npm dependencies' | |
| run: npm ci | |
| - name: 'Run DBus integration tests' | |
| run: | | |
| eval "$(dbus-launch --sh-syntax)" | |
| export DBUS_SESSION_BUS_ADDRESS | |
| npx vitest run --config vitest.config.ts 'dbus' |