Skip to content

Worktrunk is a CLI for Git worktree management, designed for parallel AI agent workflows

ci: Standardize workflow file naming (#67)

Maximilian Roos464647c29b24
diff --git a/.config/lychee.toml b/.config/lychee.toml
index 7bd9c9cdd..03eece572 100644
--- a/.config/lychee.toml
+++ b/.config/lychee.toml
@@ -1,5 +1,5 @@
# Lychee link checker configuration
-# Based on PRQL's proven patterns: https://github.com/PRQL/prql
+# See: https://lychee.cli.rs/
# Network resilience - handles transient failures
max_retries = 5
@@ -16,25 +16,25 @@ max_cache_age = "1d"
# Exclude sites that block GitHub Actions or have reliability issues
exclude = [
# Social media (blocks GitHub Actions)
- "~twitter\\.com",
- "~x\\.com",
- "~reddit\\.com",
+ "twitter\\.com",
+ "x\\.com",
+ "reddit\\.com",
# Sites with reliability issues in CI
- "~stackoverflow\\.com",
- "~npmjs\\.com",
+ "stackoverflow\\.com",
+ "npmjs\\.com",
# Package registries (frequently return 429 or block CI)
- "~crates\\.io",
- "~docs\\.rs",
- "~img\\.shields\\.io",
+ "crates\\.io",
+ "docs\\.rs",
+ "img\\.shields\\.io",
# Sites already excluded in markdown-link-check
- "~opensource\\.org",
- "~llm\\.datasette\\.io",
+ "opensource\\.org",
+ "llm\\.datasette\\.io",
# Local build artifacts (not checked into git)
- "~wt-demo/out/wt-demo\\.gif",
+ "wt-demo/out/wt-demo\\.gif",
]
# Exclude files with relative paths intended for different locations
diff --git a/.github/workflows/build-docs.yml b/.github/workflows/build-docs.yaml
similarity index 96%
rename from .github/workflows/build-docs.yml
rename to .github/workflows/build-docs.yaml
index 5d5891bcc..d335c11a6 100644
--- a/.github/workflows/build-docs.yml
+++ b/.github/workflows/build-docs.yaml
@@ -1,5 +1,3 @@
-name: build-docs
-
on:
workflow_call:
workflow_dispatch:
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yaml
similarity index 96%
rename from .github/workflows/ci.yml
rename to .github/workflows/ci.yaml
index 16a3bfc88..30dac1a41 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yaml
@@ -1,5 +1,3 @@
-name: CI
-
on:
push:
branches: [ main ]
@@ -14,7 +12,6 @@ env:
jobs:
test:
- name: Test
strategy:
fail-fast: false
matrix:
@@ -109,7 +106,6 @@ jobs:
args: --no-deps
check-links:
- name: Check links
runs-on: ubuntu-latest
steps:
- name: 📂 Checkout code
@@ -128,6 +124,13 @@ jobs:
- name: Install pre-commit
run: pip install pre-commit
+ - name: Cache lychee results
+ uses: actions/cache@v4
+ with:
+ path: .lycheecache
+ key: lychee-${{ hashFiles('.config/lychee.toml') }}-${{ github.sha }}
+ restore-keys: lychee-${{ hashFiles('.config/lychee.toml') }}-
+
- name: Get modified markdown files
if: github.event_name == 'pull_request'
id: changed-files
@@ -146,7 +149,6 @@ jobs:
# Check if Cargo files changed (for conditional jobs below)
changes:
- name: Detect changes
runs-on: ubuntu-latest
permissions:
contents: read
@@ -166,7 +168,6 @@ jobs:
- 'rust-toolchain.toml'
msrv:
- name: MSRV
runs-on: ubuntu-latest
needs: changes
if: needs.changes.outputs.cargo == 'true' || github.event_name == 'workflow_dispatch'
@@ -188,7 +189,6 @@ jobs:
run: cargo msrv verify
check-unused-dependencies:
- name: Unused dependencies
runs-on: ubuntu-latest
needs: changes
if: needs.changes.outputs.cargo == 'true' || github.event_name == 'workflow_dispatch'
@@ -215,7 +215,6 @@ jobs:
args: --all-targets --locked
benchmarks:
- name: Benchmarks
runs-on: ubuntu-latest
needs: changes
if: needs.changes.outputs.cargo == 'true' || github.event_name == 'workflow_dispatch'
diff --git a/.github/workflows/claude.yaml b/.github/workflows/claude.yaml
index 794a901b7..117098219 100644
--- a/.github/workflows/claude.yaml
+++ b/.github/workflows/claude.yaml
@@ -1,12 +1,10 @@
-name: Claude Code
-
on:
issue_comment:
types: [created]
pull_request_review_comment:
types: [created]
-# Consistent with ci.yml for cache compatibility
+# Consistent with ci.yaml for cache compatibility
env:
CARGO_TERM_COLOR: always
CLICOLOR_FORCE: 1
diff --git a/.github/workflows/publish-docs.yml b/.github/workflows/publish-docs.yaml
similarity index 91%
rename from .github/workflows/publish-docs.yml
rename to .github/workflows/publish-docs.yaml
index 66421c41b..c7a334556 100644
--- a/.github/workflows/publish-docs.yml
+++ b/.github/workflows/publish-docs.yaml
@@ -1,5 +1,3 @@
-name: publish-docs
-
on:
push:
branches:
@@ -14,7 +12,7 @@ concurrency:
jobs:
build-docs:
- uses: ./.github/workflows/build-docs.yml
+ uses: ./.github/workflows/build-docs.yaml
deploy-docs:
needs: build-docs
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yaml
similarity index 99%
rename from .github/workflows/release.yml
rename to .github/workflows/release.yaml
index 7e8e5b86b..924ced9f7 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yaml
@@ -13,7 +13,6 @@
# Note that the GitHub Release will be created with a generated
# title/body based on your changelogs.
-name: Release
permissions:
"contents": "write"
@@ -89,7 +88,6 @@ jobs:
# Build and packages all the platform-specific things
build-local-artifacts:
- name: build-local-artifacts (${{ join(matrix.targets, ', ') }})
# Let the initial task tell us to not run (currently very blunt)
needs:
- plan
@@ -279,7 +277,6 @@ jobs:
gh release create "${{ needs.plan.outputs.tag }}" --target "$RELEASE_COMMIT" $PRERELEASE_FLAG --title "$ANNOUNCEMENT_TITLE" --notes-file "$RUNNER_TEMP/notes.txt" artifacts/*
publish-cargo:
- name: Publish to crates.io
needs:
- plan
- host
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 3a66a0db5..6b81d305c 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -62,5 +62,5 @@ repos:
ci:
# pre-commit.ci doesn't have Rust toolchain, so skip Rust-specific hooks.
# Network access also isn't supported, so skip lychee.
- skip: [fmt, clippy, lychee (PR mode)]
+ skip: [fmt, clippy, lychee]
autoupdate_commit_msg: "chore: pre-commit autoupdate"
diff --git a/README.md b/README.md
index 54d1dcc11..3efffd10b 100644
--- a/README.md
+++ b/README.md
@@ -6,7 +6,7 @@
[![Crates.io](https://img.shields.io/crates/v/worktrunk?style=for-the-badge&logo=rust)](https://crates.io/crates/worktrunk)
[![License: MIT](https://img.shields.io/badge/LICENSE-MIT-blue?style=for-the-badge)](https://opensource.org/licenses/MIT)
-[![GitHub CI Status](https://img.shields.io/github/actions/workflow/status/max-sixty/worktrunk/ci.yml?event=push&branch=main&logo=github&style=for-the-badge)](https://github.com/max-sixty/worktrunk/actions?query=branch%3Amain+workflow%3Aci)
+[![GitHub CI Status](https://img.shields.io/github/actions/workflow/status/max-sixty/worktrunk/ci.yaml?event=push&branch=main&logo=github&style=for-the-badge)](https://github.com/max-sixty/worktrunk/actions?query=branch%3Amain+workflow%3Aci)
<!-- Dev badges (uncomment when repo is public and has traction) -->
<!-- [![Downloads](https://img.shields.io/crates/d/worktrunk?style=for-the-badge&logo=rust)](https://crates.io/crates/worktrunk) -->