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
8 changes: 1 addition & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,9 @@ jobs:

- uses: jdx/mise-action@v3

- name: Lint Go
- name: Lint
run: mise run lint

- name: Lint Shell
uses: ludeeus/action-shellcheck@master
with:
scandir: ./bin
severity: warning

test:
runs-on: ubuntu-latest
steps:
Expand Down
14 changes: 10 additions & 4 deletions .mise.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,17 @@ description = "Run Go integration tests"
depends = ["build"]
run = "go test ./cmd/jjtask/cmd/..."

[tasks."lint:shell"]
description = "Run shellcheck on shell scripts"
run = "shellcheck bin/jj claude-plugin/bin/jj-guard"

[tasks."lint:go"]
description = "Run golangci-lint"
run = "golangci-lint run"

[tasks.lint]
description = "Run all linters"
run = """
golangci-lint run
shellcheck bin/jj claude-plugin/bin/jj-guard
"""
depends = ["lint:shell", "lint:go"]

[tasks.fmt]
description = "Format Go code"
Expand Down Expand Up @@ -48,6 +53,7 @@ run = "./dev.sh"

[tasks.release]
description = "Create and push a release tag (patch/minor/major or vX.Y.Z)"
depends = ["ci"]
run = """
#!/usr/bin/env bash
set -euo pipefail
Expand Down