diff --git a/.codespellrc b/.codespellrc new file mode 100644 index 0000000..eb93180 --- /dev/null +++ b/.codespellrc @@ -0,0 +1,7 @@ +[codespell] +# Ref: https://github.com/codespell-project/codespell#using-a-config-file +skip = .git,.gitignore,.gitattributes,.codespellrc +check-hidden = true +# Do not "fix" URLs even if they contain typos +ignore-regex = https?://\S+ +# ignore-words-list = diff --git a/.github/workflows/codespell.yml b/.github/workflows/codespell.yml new file mode 100644 index 0000000..6e996fd --- /dev/null +++ b/.github/workflows/codespell.yml @@ -0,0 +1,23 @@ +# Codespell configuration is within .codespellrc +--- +name: Codespell + +on: + push: + branches: [main] + pull_request: + branches: [main] + +permissions: + contents: read + +jobs: + codespell: + name: Check for spelling errors + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Codespell + uses: codespell-project/actions-codespell@8f01853be192eb0f849a5c7d721450e7a467c579 # v2.2 diff --git a/README.md b/README.md index 2dd9642..1795dca 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ This repository contains the tools needed to quickly get started with Postal. For full details on how to use it [read the documentation](https://docs.postalserver.io). -## Instralling pre-requisites +## Installing pre-requisites There are a number of pre-requisites needed to run Postal. These are detailed [in the documentation](https://docs.postalserver.io/getting-started/prerequisites). If you're feeling a bit lazy (or just doing a lot of testing) , we have a couple of scripts which you can use to install everything needed. diff --git a/bin/postal b/bin/postal index 5510c2a..01423e9 100755 --- a/bin/postal +++ b/bin/postal @@ -62,7 +62,7 @@ run-docker-compose() { if [ ! -f "docker-compose.yml" ]; then echo 'No docker-compose file available. Generating using latest available version...' latest_version=`get-latest-postal-version` - echo "Latest verison is $latest_version" + echo "Latest version is $latest_version" set-postal-version $latest_version fi @@ -219,7 +219,7 @@ case "$1" in exit $? fi - # Get the latest verison of Postal which we want to upgrade + # Get the latest version of Postal which we want to upgrade # to if no other version is provided. if [ "$2" == "" ]; then if [ ! $FORCE_VERSION == "" ]; then @@ -288,7 +288,7 @@ case "$1" in exit 1 fi - # Get the latest verison of Postal as the starting version for a + # Get the latest version of Postal as the starting version for a # new installation. if [ ! $FORCE_VERSION == "" ]; then latest_version="$FORCE_VERSION"