Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 51 additions & 0 deletions .github/workflows/docker-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Docker lint

# Cancel workflow if there is a new change to the branch.
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}

on:
merge_group:
pull_request:
branches:
- main
paths:
- "**/Dockerfile*"
- "**/*.dockerfile"
- "monitored-stack/docker-compose.yml"
- "monitored-stack/.env.example"
- ".github/workflows/docker-lint.yml"
push:
branches:
- main
paths:
- "**/Dockerfile*"
- "**/*.dockerfile"
- "monitored-stack/docker-compose.yml"
- "monitored-stack/.env.example"
- ".github/workflows/docker-lint.yml"

jobs:
docker-lint:
runs-on: ubuntu-24.04-arm
steps:
- uses: actions/checkout@v6
- name: validate compose file
run: |
cp monitored-stack/.env.example monitored-stack/.env
docker compose -f monitored-stack/docker-compose.yml config
- uses: hadolint/hadolint-action@v3.3.0
with:
dockerfile: "Dockerfile*"
recursive: true
# https://github.com/hadolint/hadolint/wiki/DL3008
# https://github.com/hadolint/hadolint/wiki/DL3018
ignore: DL3008,DL3018
- uses: hadolint/hadolint-action@v3.3.0
with:
dockerfile: "*.dockerfile"
recursive: true
# https://github.com/hadolint/hadolint/wiki/DL3008
# https://github.com/hadolint/hadolint/wiki/DL3018
ignore: DL3008,DL3018
34 changes: 34 additions & 0 deletions .github/workflows/lists-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Lists lint

# Cancel workflow if there is a new change to the branch.
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}

on:
merge_group:
pull_request:
branches:
- main
paths:
- "src/tool/subcommands/api_cmd/test_snapshots_ignored.txt"
- "src/tool/subcommands/api_cmd/test_snapshots.txt"
- ".github/workflows/lists-lint.yml"
push:
branches:
- main
paths:
- "src/tool/subcommands/api_cmd/test_snapshots_ignored.txt"
- "src/tool/subcommands/api_cmd/test_snapshots.txt"
- ".github/workflows/lists-lint.yml"

jobs:
lists-lint:
runs-on: ubuntu-24.04-arm
steps:
- uses: actions/checkout@v6
- uses: jdx/mise-action@v3
- name: Sort and verify lists
run: |
mise lint:lists
git diff --exit-code
37 changes: 37 additions & 0 deletions .github/workflows/python-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Python lint

# Cancel workflow if there is a new change to the branch.
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}

on:
merge_group:
pull_request:
branches:
- main
paths:
- "**/*.py"
- ".github/workflows/python-lint.yml"
push:
branches:
- main
paths:
- "**/*.py"
- ".github/workflows/python-lint.yml"

jobs:
python-lint:
if: ${{ !startsWith(github.ref, 'refs/heads/gh-readonly-queue/') }}
runs-on: ubuntu-24.04-arm
steps:
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: "3.12"
- run: pip install black flake8
- name: Run Python linters
uses: wearerequired/lint-action@v2
with:
black: true
flake8: true
29 changes: 29 additions & 0 deletions .github/workflows/rubocop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Rubocop

# Cancel workflow if there is a new change to the branch.
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}

on:
merge_group:
pull_request:
branches:
- main
paths:
- "**/*.rb"
- ".github/workflows/rubocop.yml"
push:
branches:
- main
paths:
- "**/*.rb"
- ".github/workflows/rubocop.yml"

jobs:
rubocop:
runs-on: ubuntu-24.04-arm
steps:
- uses: actions/checkout@v6
- uses: jdx/mise-action@v3
- run: mise lint:ruby
82 changes: 0 additions & 82 deletions .github/workflows/scripts-lint.yml

This file was deleted.

30 changes: 30 additions & 0 deletions .github/workflows/shellcheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Shellcheck

# Cancel workflow if there is a new change to the branch.
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}

on:
merge_group:
pull_request:
branches:
- main
paths:
- "**/*.sh"
- ".github/workflows/shellcheck.yml"
push:
branches:
- main
paths:
- "**/*.sh"
- ".github/workflows/shellcheck.yml"

jobs:
shellcheck:
runs-on: ubuntu-24.04-arm
steps:
- uses: actions/checkout@v6
- uses: jdx/mise-action@v3
- name: Run shellcheck
run: mise lint:shellcheck
31 changes: 31 additions & 0 deletions .github/workflows/yaml-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: YAML lint

# Cancel workflow if there is a new change to the branch.
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}

on:
merge_group:
pull_request:
branches:
- main
paths:
- "**/*.yml"
- "**/*.yaml"
- ".github/workflows/yaml-lint.yml"
push:
branches:
- main
paths:
- "**/*.yml"
- "**/*.yaml"
- ".github/workflows/yaml-lint.yml"

jobs:
yaml-lint:
runs-on: ubuntu-24.04-arm
steps:
- uses: actions/checkout@v6
- uses: jdx/mise-action@v3
- run: mise lint:yaml
Loading