build(deps-dev): bump the npm group across 1 directory with 6 updates #404
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: pre-commit | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| permissions: {} | |
| jobs: | |
| all-files: | |
| # also lints python files | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| persist-credentials: false | |
| - uses: actions/setup-python@v6 | |
| id: python-setup | |
| with: | |
| python-version: 3.x | |
| - uses: astral-sh/setup-uv@cec208311dfd045dd5311c1add060b2062131d57 # v8.0.0 | |
| with: | |
| enable-cache: true | |
| - name: Cache pre-commit environments | |
| uses: actions/cache@v5 | |
| with: | |
| path: '~/.cache/pre-commit' | |
| key: pre-commit-${{ steps.python-setup.outputs.python-version }}-${{ hashFiles('.pre-commit-config.yaml') }} | |
| - run: uvx pre-commit run --show-diff-on-failure --color=always --all-files | |
| lint-rust: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| persist-credentials: false | |
| - name: Setup Rust | |
| run: rustup update --no-self-update | |
| - name: Cache deps | |
| uses: actions/cache@v5 | |
| with: | |
| path: |- | |
| ~/.cargo/registry/index/ | |
| ~/.cargo/registry/cache/ | |
| ~/.cargo/git/db/ | |
| key: cargo-lint-${{ hashFiles('**/*.rs') }} | |
| - name: Install cargo-binstall | |
| uses: cargo-bins/cargo-binstall@0b24824336e2b3800b0f89d9e08b2c08bfa3dcdd # v1.17.9 | |
| - name: Install nur | |
| run: cargo binstall -y nur | |
| env: | |
| GITHUB_TOKEN: ${{ github.token }} | |
| - run: nur lint --check | |
| - run: nur lint examples --check | |
| lint-typescript: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| persist-credentials: false | |
| - name: Setup node | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: 24 | |
| cache: yarn | |
| - run: rustup update --no-self-update | |
| - name: Install libgpiod | |
| run: sudo apt-get install -y libgpiod-dev | |
| - run: yarn install | |
| - name: Build binding (debug) | |
| run: yarn build:debug | |
| - name: Lint examples | |
| run: yarn lint | |
| - name: Format examples | |
| run: yarn format:examples | |
| - name: Compile examples | |
| run: yarn build:examples | |
| check-pr-title: | |
| name: Check PR title | |
| if: github.event_name == 'pull_request' | |
| runs-on: ubuntu-latest | |
| # permissions needed to read PR title dynamically using gh-cli | |
| permissions: | |
| contents: read | |
| pull-requests: read | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| persist-credentials: false | |
| - name: Get PR title | |
| id: get-title | |
| env: | |
| GH_REPO: ${{ github.repository }} | |
| GH_TOKEN: ${{ github.token }} | |
| PR_NUMBER: ${{ github.event.pull_request.number }} | |
| run: |- | |
| pr_title=$(gh pr view "${PR_NUMBER}" --repo "${GH_REPO}" --json "title" -q ".title") | |
| echo "title=${pr_title}" >> "${GITHUB_OUTPUT}" | |
| - run: rustup update --no-self-update | |
| - name: Install cargo-binstall | |
| uses: cargo-bins/cargo-binstall@0b24824336e2b3800b0f89d9e08b2c08bfa3dcdd # v1.17.9 | |
| - name: Install committed | |
| run: cargo binstall -y committed | |
| env: | |
| GITHUB_TOKEN: ${{ github.token }} | |
| - name: conventional-commit | |
| env: | |
| PR_TITLE: "${{ steps.get-title.outputs.title }}" | |
| run: echo "${PR_TITLE}" | committed --config .config/committed.toml --commit-file - | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: latest | |
| - name: spell check | |
| env: | |
| PR_TITLE: "${{ steps.get-title.outputs.title }}" | |
| run: echo "${PR_TITLE}" | npx cspell-cli lint stdin | |
| lint-ci-workflows: | |
| name: Lint CI Workflows | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| persist-credentials: false | |
| - name: Setup node | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: 3.x | |
| - name: Lint GitHub Workflows | |
| env: | |
| GH_TOKEN: ${{ github.token }} | |
| run: pipx run zizmor --format github .github/workflows/ |