This repository has been archived by the owner on Oct 30, 2024. It is now read-only.
[syncthing] Update to v1.27.12-r0 #558
Workflow file for this run
This file contains 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: Lint Checks | |
on: | |
pull_request: | |
branches: | |
- main | |
- dev | |
push: | |
branches: | |
- dev | |
jobs: | |
check-addon-changes: | |
runs-on: ubuntu-latest | |
outputs: | |
changedAddons: ${{ steps.filter.outputs.changes }} | |
changedDockerfiles: ${{ steps.changed-files.outputs.dockerfile_files }} | |
steps: | |
- name: ↩️ Checkout | |
uses: actions/checkout@v4 | |
- name: 📂 Detect chanced addons | |
uses: dorny/paths-filter@v3 | |
id: filter | |
with: | |
filters: .github/paths-filter.yml | |
- name: 📂 Detect chanced files | |
uses: dorny/paths-filter@v3 | |
id: changed-files | |
with: | |
list-files: csv | |
filters: | | |
dockerfile: | |
- '**/Dockerfile.md' | |
addon-linter: | |
name: Addon linting | |
if: ${{ needs.check-addon-changes.outputs.changedAddons != '[]' }} | |
runs-on: ubuntu-latest | |
needs: check-addon-changes | |
strategy: | |
fail-fast: false | |
matrix: | |
addon: ${{ fromJSON(needs.check-addon-changes.outputs.changedAddons) }} | |
steps: | |
- name: ↩️ Checkout | |
uses: actions/checkout@v4 | |
- name: 🔎 Run Home Assistant Add-on Lint | |
uses: frenck/action-addon-linter@v2 | |
with: | |
path: "./${{ matrix.addon }}" | |
hadolint: | |
runs-on: ubuntu-latest | |
container: ghcr.io/hadolint/hadolint:latest-alpine | |
steps: | |
- name: ↩️ Checkout | |
uses: actions/checkout@v4 | |
- name: 🔎 Run hadolint | |
if: steps.filter.outputs.dockerfile == 'true' | |
run: hadolint ${{ needs.check-addon-changes.outputs.changedDockerfiles }} | |
shellcheck: | |
runs-on: ubuntu-latest | |
steps: | |
- name: ↩️ Checkout | |
uses: actions/checkout@v4 | |
- name: 📂 Detect chanced files | |
id: filter | |
uses: dorny/paths-filter@v3 | |
with: | |
list-files: 'shell' | |
filters: | | |
shell: | |
- '**/*.sh' | |
- '**/cont-init.d/*' | |
- '**/services.d/*' | |
- name: 🔎 Run ShellCheck | |
if: steps.filter.outputs.shell == 'true' | |
uses: ludeeus/action-shellcheck@2.0.0 | |
with: | |
additional_files: ${{ steps.filter.outputs.shell_files }} | |
markdownlint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: ↩️ Checkout | |
uses: actions/checkout@v4 | |
- name: 🔎 Run markdownlint | |
uses: nosborn/github-action-markdown-cli@v3.3.0 | |
with: | |
files: . |