# Codespell configuration is within .codespellrc
---
name: Codespell

on:
  # run checks on push to master, but not when other branches are pushed to
  push:
    branches:
      - master

  # run checks for all pull requests
  pull_request:
  merge_group:

permissions:
  contents: read

jobs:
  codespell:
    name: Check for spelling errors
    runs-on: ubuntu-latest

    steps:
      - name: Checkout
        uses: actions/checkout@v6
      - name: Codespell
        uses: codespell-project/actions-codespell@8f01853be192eb0f849a5c7d721450e7a467c579  # v2.2
