Repository navigation
chore: add oxlint (#31) #79
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 and bundle | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| workflow_dispatch: | |
| permissions: {} | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - uses: actions/checkout@v7.0.1 | |
| with: | |
| persist-credentials: false | |
| - uses: pnpm/setup@v3.1.2 | |
| with: | |
| node-version-file: .nvmrc | |
| cache: true | |
| require-lockfile: true | |
| - name: Lint | |
| run: pnpm lint:ci | |
| - name: Check syntax and placement behavior | |
| run: | | |
| node --check gitify/contents/code/main.js | |
| bash -n scripts/install.sh scripts/bundle.sh | |
| python3 -m py_compile scripts/test-live.py | |
| pnpm test | |
| - name: Bundle KWin script | |
| run: pnpm bundle | |
| - uses: actions/upload-artifact@v7.0.2 | |
| with: | |
| name: gitify-kwin-script | |
| path: dist/gitify.kwinscript |