fix: Improve token schedule to avoid session close #353
Workflow file for this run
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: Test | |
| on: | |
| pull_request: | |
| types: [opened, synchronize, reopened] | |
| jobs: | |
| test-main: | |
| name: 🧪 Test Main Process | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out Git repository | |
| uses: actions/checkout@v4 | |
| - name: Use Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 18 | |
| cache: 'npm' | |
| - name: Install system dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y libfuse2 libgtk-3-0 libnotify4 libnss3 libxss1 libxtst6 xdg-utils libatspi2.0-0 libdrm2 libgbm1 libasound2t64 | |
| - name: Install dependencies | |
| run: npm ci --ignore-scripts | |
| - name: Install Electron | |
| run: cd node_modules/electron && node install.js | |
| - name: Install app dependencies | |
| run: cd release/app && npm ci | |
| - name: Build main process | |
| run: npm run build:main | |
| - name: Run main process tests | |
| run: npm run test:main | |
| test-renderer: | |
| name: 🎨 Test Renderer Process | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out Git repository | |
| uses: actions/checkout@v4 | |
| - name: Use Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 18 | |
| cache: 'npm' | |
| - name: Install dependencies | |
| run: npm ci --ignore-scripts | |
| - name: Build renderer process | |
| run: npm run build:renderer | |
| - name: Run renderer tests | |
| run: npm run test:renderer |