From 4845795befd62baccadcf963adb34bcfbb0e9aa5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D7=A0=CF=85=CE=B1=CE=B7=20=D7=A0=CF=85=CE=B1=CE=B7=D1=95?= =?UTF-8?q?=CF=83=CE=B7?= Date: Sun, 15 Mar 2026 15:49:29 -0700 Subject: [PATCH 1/3] chore: clean up CI workflow naming and add lint jobs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Rename workflow files for consistent hyphenated naming: - commitlint.yml → commit-lint.yml - depreview.yml → dep-review.yml - reportcard.yml → report-card.yml Add just module, just-lint.yml workflow, just::fmt-check to test recipe, and ready recipe for local pre-commit checks. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- .../{commitlint.yml => commit-lint.yml} | 0 .../{depreview.yml => dep-review.yml} | 0 .github/workflows/just-lint.yml | 20 +++++++++++++++++++ .../{reportcard.yml => report-card.yml} | 0 justfile | 9 +++++++++ 5 files changed, 29 insertions(+) rename .github/workflows/{commitlint.yml => commit-lint.yml} (100%) rename .github/workflows/{depreview.yml => dep-review.yml} (100%) create mode 100644 .github/workflows/just-lint.yml rename .github/workflows/{reportcard.yml => report-card.yml} (100%) diff --git a/.github/workflows/commitlint.yml b/.github/workflows/commit-lint.yml similarity index 100% rename from .github/workflows/commitlint.yml rename to .github/workflows/commit-lint.yml diff --git a/.github/workflows/depreview.yml b/.github/workflows/dep-review.yml similarity index 100% rename from .github/workflows/depreview.yml rename to .github/workflows/dep-review.yml diff --git a/.github/workflows/just-lint.yml b/.github/workflows/just-lint.yml new file mode 100644 index 0000000..926ddea --- /dev/null +++ b/.github/workflows/just-lint.yml @@ -0,0 +1,20 @@ +--- +name: Just Lint + +on: + push: + branches: ["main"] + pull_request: + branches: ["main"] + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v6 + - name: Install just + uses: extractions/setup-just@v3 + - name: Fetch justfiles + run: just fetch + - name: Lint justfiles + run: just just::fmt-check diff --git a/.github/workflows/reportcard.yml b/.github/workflows/report-card.yml similarity index 100% rename from .github/workflows/reportcard.yml rename to .github/workflows/report-card.yml diff --git a/justfile b/justfile index 96e7dab..f33df00 100644 --- a/justfile +++ b/justfile @@ -2,6 +2,7 @@ # Recipes below use `just` subcommands instead of dependency syntax because just # validates dependencies at parse time, which would fail when modules aren't loaded. mod? go '.just/remote/go.mod.just' +mod? just '.just/remote/just.mod.just' # --- Fetch --- @@ -10,6 +11,8 @@ fetch: mkdir -p .just/remote curl -sSfL https://raw.githubusercontent.com/osapi-io/osapi-justfiles/refs/heads/main/go.mod.just -o .just/remote/go.mod.just curl -sSfL https://raw.githubusercontent.com/osapi-io/osapi-justfiles/refs/heads/main/go.just -o .just/remote/go.just + curl -sSfL https://raw.githubusercontent.com/osapi-io/osapi-justfiles/refs/heads/main/just.mod.just -o .just/remote/just.mod.just + curl -sSfL https://raw.githubusercontent.com/osapi-io/osapi-justfiles/refs/heads/main/just.just -o .just/remote/just.just # --- Top-level orchestration --- @@ -20,4 +23,10 @@ deps: # Run all tests test: + just just::fmt-check just go::test + +# Format and lint before committing +ready: + just go::fmt + just go::vet From a6c3d0ca7fd0f70508462755bc7acd22fa5e605e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D7=A0=CF=85=CE=B1=CE=B7=20=D7=A0=CF=85=CE=B1=CE=B7=D1=95?= =?UTF-8?q?=CF=83=CE=B7?= Date: Sun, 15 Mar 2026 15:53:34 -0700 Subject: [PATCH 2/3] fix: remove just::fmt-check from test recipe MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Justfile linting is handled by the standalone just-lint.yml workflow and should not block the Go test pipeline. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- justfile | 1 - 1 file changed, 1 deletion(-) diff --git a/justfile b/justfile index f33df00..7f89953 100644 --- a/justfile +++ b/justfile @@ -23,7 +23,6 @@ deps: # Run all tests test: - just just::fmt-check just go::test # Format and lint before committing From 5d9404d16e291c46ebc95c5569ee0ba3d30a927f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D7=A0=CF=85=CE=B1=CE=B7=20=D7=A0=CF=85=CE=B1=CE=B7=D1=95?= =?UTF-8?q?=CF=83=CE=B7?= Date: Sun, 15 Mar 2026 15:58:27 -0700 Subject: [PATCH 3/3] style: add blank line in justfile header comment MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- justfile | 1 + 1 file changed, 1 insertion(+) diff --git a/justfile b/justfile index 7f89953..a60578d 100644 --- a/justfile +++ b/justfile @@ -1,5 +1,6 @@ # Optional modules: mod? allows `just fetch` to work before .just/remote/ exists. # Recipes below use `just` subcommands instead of dependency syntax because just + # validates dependencies at parse time, which would fail when modules aren't loaded. mod? go '.just/remote/go.mod.just' mod? just '.just/remote/just.mod.just'