feat: more permissions for browser #14
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: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| node-version: [18, 20, 22] | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| cache: 'npm' | |
| # Install system dependencies for robotjs | |
| - name: Install system dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y libxtst-dev libpng-dev | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Build protocol | |
| run: npm run build -w packages/protocol | |
| - name: Build server | |
| run: npm run build -w server | |
| - name: Run tests | |
| run: npm test -w server | |
| build-desktop: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, macos-latest, windows-latest] | |
| node-version: [20] | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| cache: 'npm' | |
| # Linux dependencies for robotjs | |
| - name: Install Linux dependencies | |
| if: runner.os == 'Linux' | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y libxtst-dev libpng-dev | |
| # macOS dependencies for robotjs | |
| - name: Install macOS dependencies | |
| if: runner.os == 'macOS' | |
| run: | | |
| xcode-select --install 2>/dev/null || true | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Build protocol | |
| run: npm run build -w packages/protocol | |
| - name: Build desktop executor | |
| run: npm run build -w @wire-agent/desktop-executor | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: 'npm' | |
| # Install system dependencies for robotjs | |
| - name: Install system dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y libxtst-dev libpng-dev | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Check TypeScript | |
| run: | | |
| npm run build -w packages/protocol | |
| npm run build -w server |