π Fix poll error on Niri in tablet mode #3416
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
| # SPDX-FileCopyrightText: Simon Schneegans <[email protected]> | |
| # SPDX-License-Identifier: CC0-1.0 | |
| name: Checks | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - '**' | |
| permissions: | |
| contents: read | |
| jobs: | |
| test: | |
| name: Tests | |
| runs-on: ubuntu-latest | |
| # Do only run on pushes to the main repository or on pull requests from forks. This avoids running the tests twice on pull requests from the main repository. | |
| if: (github.event_name == 'push' && ! github.event.pull_request.head.repo.fork) || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork) | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/[email protected] | |
| with: | |
| node-version-file: .node-version | |
| - name: Install Dependencies | |
| run: | | |
| sudo apt install libx11-dev libxtst-dev libwayland-dev libxkbcommon-dev | |
| npm ci | |
| - name: Run Tests | |
| run: npm run test | |
| eslint: | |
| name: ESLint | |
| runs-on: ubuntu-latest | |
| # Do only run on pushes to the main repository or on pull requests from forks. This avoids running the tests twice on pull requests from the main repository. | |
| if: (github.event_name == 'push' && ! github.event.pull_request.head.repo.fork) || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork) | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/[email protected] | |
| with: | |
| node-version-file: .node-version | |
| - name: Install Dependencies | |
| run: | | |
| sudo apt install libx11-dev libxtst-dev libwayland-dev libxkbcommon-dev | |
| npm ci | |
| - name: Run ESLint | |
| run: npm run lint | |
| prettier: | |
| name: Prettier | |
| runs-on: ubuntu-latest | |
| # Do only run on pushes to the main repository or on pull requests from forks. This avoids running the tests twice on pull requests from the main repository. | |
| if: (github.event_name == 'push' && ! github.event.pull_request.head.repo.fork) || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork) | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/[email protected] | |
| with: | |
| node-version-file: .node-version | |
| - name: Install Dependencies | |
| run: | | |
| sudo apt install libx11-dev libxtst-dev libwayland-dev libxkbcommon-dev | |
| npm ci | |
| - name: Run Prettier | |
| run: npm run prettier | |
| tscheck: | |
| name: TypeScript Check | |
| runs-on: ubuntu-latest | |
| # Do only run on pushes to the main repository or on pull requests from forks. This avoids running the tests twice on pull requests from the main repository. | |
| if: (github.event_name == 'push' && ! github.event.pull_request.head.repo.fork) || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork) | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/[email protected] | |
| with: | |
| node-version-file: .node-version | |
| - name: Install Dependencies | |
| run: | | |
| sudo apt install libx11-dev libxtst-dev libwayland-dev libxkbcommon-dev | |
| npm ci | |
| - name: Run TypeScript Check | |
| run: npm run tscheck | |
| reuse: | |
| name: REUSE | |
| runs-on: ubuntu-latest | |
| # Do only run on pushes to the main repository or on pull requests from forks. This avoids running the tests twice on pull requests from the main repository. | |
| if: (github.event_name == 'push' && ! github.event.pull_request.head.repo.fork) || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork) | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: REUSE Compliance Check | |
| uses: fsfe/reuse-action@v4 |