Skip to content

Commit 0267da8

Browse files
authored
Merge pull request #163 from a5chin/feature/actionlint
Add actionlint
2 parents 61c1994 + 864f150 commit 0267da8

9 files changed

Lines changed: 44 additions & 11 deletions

File tree

.github/workflows/actionlint.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Lint GitHub Actions workflows
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- .github/workflows/*.yml
7+
8+
jobs:
9+
actionlint:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v6
14+
15+
- name: Check workflow files
16+
uses: reviewdog/action-actionlint@v1

.github/workflows/gh-deploy.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,13 @@ jobs:
3333
uses: ./.github/actions/setup-python-with-uv
3434

3535
- name: Generate cache id
36-
run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
36+
id: cache
37+
run: echo "id=$(find docs -type f -print0 | sort -z | xargs -0 sha256sum mkdocs.yml pyproject.toml uv.lock | sha256sum | awk '{print $1}')" >> "$GITHUB_OUTPUT"
3738

3839
- name: Save cache
3940
uses: actions/cache@v5
4041
with:
41-
key: mkdocs-material-${{ env.cache_id }}
42+
key: mkdocs-material-${{ steps.cache.outputs.id }}
4243
path: .cache
4344
restore-keys: mkdocs-material-
4445

.pre-commit-config.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,11 @@ repos:
5252
language: python
5353
types: [python]
5454

55+
- repo: https://github.com/rhysd/actionlint
56+
rev: v1.7.10
57+
hooks:
58+
- id: actionlint
59+
5560
- repo: https://github.com/hadolint/hadolint
5661
rev: v2.12.0
5762
hooks:

.vscode/cspell.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@
8787
"pyupgrade",
8888
"qodo",
8989
"redoc",
90+
"reviewdog",
9091
"rootdir",
9192
"ropeproject",
9293
"scrapy",

CLAUDE.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,7 @@ When adding new utilities to `tools/`, add corresponding documentation to `docs/
252252
## CI/CD Workflows
253253

254254
GitHub Actions workflows in `.github/workflows/`:
255+
- **actionlint.yml**: Lint GitHub Actions workflows
255256
- **docker.yml**: Validate Docker build
256257
- **devcontainer.yml**: Validate Dev Container configuration
257258
- **format.yml**: Check Ruff formatting

docs/configurations/index.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@ Each tool is configured through dedicated configuration files in the repository
1717

1818
## Configuration Files
1919

20-
| File | Tool | Purpose |
21-
|------|------|---------|
22-
| `pyproject.toml` | uv, Project | Dependencies and project metadata |
23-
| `ruff.toml` | Ruff | Linting and formatting rules |
24-
| `ty.toml` | ty | Type checking configuration |
25-
| `.sqlfluff` | SQLFluff | SQL linting and formatting rules |
26-
| `pytest.ini` | pytest | Testing and coverage settings |
27-
| `.pre-commit-config.yaml` | pre-commit | Hook definitions |
28-
| `noxfile.py` | nox | Task automation |
20+
| File | Tool | Purpose |
21+
| ------------------------- | ----------- | --------------------------------- |
22+
| `pyproject.toml` | uv, Project | Dependencies and project metadata |
23+
| `ruff.toml` | Ruff | Linting and formatting rules |
24+
| `ty.toml` | ty | Type checking configuration |
25+
| `.sqlfluff` | SQLFluff | SQL linting and formatting rules |
26+
| `pytest.ini` | pytest | Testing and coverage settings |
27+
| `.pre-commit-config.yaml` | pre-commit | Hook definitions |
28+
| `noxfile.py` | nox | Task automation |
2929

3030
## Quick Links
3131

docs/configurations/pre-commit.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
- [https://github.com/sqlfluff/sqlfluff](https://github.com/sqlfluff/sqlfluff)
1414
- SQLFluff Lint
1515
- SQLFluff Fix
16+
- [https://github.com/rhysd/actionlint](https://github.com/rhysd/actionlint)
17+
- actionlint
1618
- [https://github.com/hadolint/hadolint](https://github.com/hadolint/hadolint)
1719
- Hadolint
1820

@@ -44,6 +46,11 @@ repos:
4446
name: Ruff format
4547
description: "Run 'ruff format' for extremely fast Python formatting"
4648
49+
- repo: https://github.com/rhysd/actionlint
50+
rev: v1.7.10
51+
hooks:
52+
- id: actionlint
53+
4754
- repo: https://github.com/hadolint/hadolint
4855
rev: v2.12.0
4956
hooks:

docs/guides/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ This template includes several modern Python development tools, each serving a s
1010
- **Ruff** - Lightning-fast linting and formatting
1111
- **ty** - Advanced type checking
1212
- **SQLFluff** - SQL linting and formatting
13+
- **actionlint** - GitHub Actions workflow linting
1314
- **pytest** - Comprehensive testing framework
1415
- **nox** - Task automation and workflow management
1516
- **pre-commit** - Automated code quality checks

docs/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ This repository provides a complete, batteries-included development environment
1515
- **Ultra-fast package management** - [uv](https://github.com/astral-sh/uv) is 10-100x faster than pip
1616
- **Lightning-fast code quality** - [Ruff](https://github.com/astral-sh/ruff) replaces Black, isort, Flake8, and more
1717
- **SQL linting** - [SQLFluff](https://github.com/sqlfluff/sqlfluff) for SQL code quality
18+
- **GitHub Actions linting** - [actionlint](https://github.com/rhysd/actionlint) for workflow file quality
1819
- **Type safety** - ty for comprehensive type checking
1920
- **Automated testing** - pytest with 75% coverage requirement
2021
- **Task automation** - nox for streamlined development workflows

0 commit comments

Comments
 (0)