Refactor remote connection flow (#221) #458
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-build | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| jobs: | |
| test-build: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [macos-latest, ubuntu-latest, windows-latest] | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '22.x' | |
| - name: Install NPM Dependencies | |
| run: npm install | |
| - name: Install Snapcraft | |
| if: matrix.os == 'ubuntu-latest' | |
| run: | | |
| sudo snap install snapcraft --classic | |
| - name: Build Mac | |
| if: matrix.os == 'macos-latest' | |
| run: npm run build-mac | |
| env: | |
| VITE_LSP_WEBSOCKET_PORT: 54331 | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| CSC_IDENTITY_AUTO_DISCOVERY: false | |
| SKIP_NOTARIZE: true | |
| - name: Build Linux | |
| if: matrix.os == 'ubuntu-latest' | |
| run: npm run build-linux | |
| env: | |
| VITE_LSP_WEBSOCKET_PORT: 54331 | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_STORE_CREDENTIALS }} | |
| - name: Build & Publish Windows | |
| if: matrix.os == 'windows-latest' | |
| run: npm run build-win | |
| env: | |
| VITE_LSP_WEBSOCKET_PORT: 54331 | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |