Repository navigation
chore: use pnpm and pnpm/setup #71
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: 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: jdx/mise-action@v5.2.5 | |
| with: | |
| install: true | |
| cache: true | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - 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 |