diff --git a/.editorconfig b/.editorconfig index 2225fd9..e2139a6 100644 --- a/.editorconfig +++ b/.editorconfig @@ -6,3 +6,6 @@ indent_style = space indent_size = 4 trim_trailing_whitespace = true insert_final_newline = true + +[*.yml] +indent_size = 2 diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..3c7a1b5 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,21 @@ +on: + push: + branches: + - master + pull_request: + branches: + - master + schedule: + - cron: '0 0 * * 6' # every Saturday + workflow_dispatch: + +jobs: + encoding: + runs-on: ubuntu-24.04 + steps: + - name: Check out the repository + uses: actions/checkout@v4 + + - name: Verify encoding + shell: pwsh + run: Install-Module VerifyEncoding -Repository PSGallery -RequiredVersion 2.2.0 -Force && Test-Encoding diff --git a/renovate.json b/renovate.json index 93afd4a..00a95c3 100644 --- a/renovate.json +++ b/renovate.json @@ -2,5 +2,18 @@ "$schema": "https://docs.renovatebot.com/renovate-schema.json", "extends": [ "config:recommended" + ], + "customManagers": [ + { + "customType": "regex", + "fileMatch": [ + "^\\.github/workflows/.+\\.yml$" + ], + "matchStrings": [ + "Install-Module (?\\S+?) -RequiredVersion (?\\S+)" + ], + "datasourceTemplate": "nuget", + "registryUrlTemplate": "https://www.powershellgallery.com/api/v2/" + } ] }