diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..b2c32ec --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,9 @@ +version: 2 +updates: + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "weekly" + commit-message: + prefix: "[GitHub Actions]" + \ No newline at end of file diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..1914aa1 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,31 @@ +name: Test Sury Unlocker Script + +on: + push: + pull_request: + +jobs: + + bash-lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Set up shellcheck + uses: ludeeus/action-shellcheck@master + - name: Run shellcheck + run: | + find . -name "*.sh" -print0 | xargs -0 shellcheck # Finds all files with the .sh extension in the current directory and subdirectories + + + markdown-lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Lint Markdown files + uses: DavidAnson/markdownlint-cli2-action@v19 + with: + globs: '**/*.md' # Checks all Markdown files in the repository + fix: true # automatically fixes simple problems + config: '.markdownlint.jsonc' # if you have a configuration file +# continue-on-error: true # to prevent the build from crashing due to errors in the documentation diff --git a/.markdownlint.jsonc b/.markdownlint.jsonc new file mode 100644 index 0000000..73cb980 --- /dev/null +++ b/.markdownlint.jsonc @@ -0,0 +1,3 @@ +{ + "MD013": false +} \ No newline at end of file