stay logged in longer #371
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: Build Electron App | |
| on: | |
| push: | |
| branches: [main, develop] | |
| pull_request: | |
| branches: [main] | |
| release: | |
| types: [created] | |
| jobs: | |
| sync-server-lockfile: | |
| runs-on: ubuntu-latest | |
| name: Check sync-server lockfile | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup Bun | |
| uses: oven-sh/setup-bun@v2 | |
| - name: Verify lockfile is up to date | |
| run: bun install --frozen-lockfile | |
| working-directory: sync-server | |
| build: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [macos-latest, windows-latest, ubuntu-latest] | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| cache: 'npm' | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Run typecheck | |
| run: npm run typecheck | |
| - name: Run linter | |
| run: npm run lint | |
| - name: Build application | |
| run: npm run build | |
| - name: Build Electron app (macOS) | |
| if: matrix.os == 'macos-latest' | |
| run: npm run build:mac | |
| env: | |
| CSC_IDENTITY_AUTO_DISCOVERY: false | |
| - name: Build Electron app (Windows) | |
| if: matrix.os == 'windows-latest' | |
| run: npm run build:win | |
| env: | |
| CSC_IDENTITY_AUTO_DISCOVERY: false | |
| - name: Install Snapcraft | |
| if: matrix.os == 'ubuntu-latest' | |
| run: sudo snap install snapcraft --classic | |
| - name: Build Electron app (Linux) | |
| if: matrix.os == 'ubuntu-latest' | |
| run: npm run build:linux |