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
35 changes: 35 additions & 0 deletions .claude/settings.local.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"permissions": {
"allow": [
"WebFetch(domain:www.twingate.com)",
"WebSearch",
"WebFetch(domain:caddyserver.com)",
"Bash(go build:*)",
"Bash(xcaddy build:*)",
"Bash(timeout:*)",
"Bash(./caddy run:*)",
"WebFetch(domain:github.com)",
"WebFetch(domain:raw.githubusercontent.com)",
"mcp__ai-counsel__deliberate",
"Bash(go doc -all github.com/caddyserver/caddy/v2/modules/caddyevents)",
"WebFetch(domain:pkg.go.dev)",
"Bash(go doc github.com/caddyserver/caddy/v2/modules/caddyevents.Handler)",
"Bash(go test -v -run \"TestGetOutboundIP|TestNormalizePath|TestCanonicalKey|TestResourceAlias\")",
"Bash(go test -v)",
"Bash(go test -v -run TestDeleteStaleResources)",
"Bash(go test -v ./...)",
"WebFetch(domain:mise.jdx.dev)"
],
"deny": [],
"ask": []
},
"mcpServers": {
"ai-counsel": {
"type": "stdio",
"command": "/Users/demi-twingate/repos/ai-counsel/.venv/bin/python",
"args": [
"/Users/demi-twingate/repos/ai-counsel/server.py"
]
}
}
}
91 changes: 88 additions & 3 deletions .github/workflows/pr-validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ permissions:
pull-requests: read

jobs:
validate:
name: CI Validation
setup:
name: Setup Dependencies
runs-on: ubuntu-latest
steps:
- name: Checkout code
Expand All @@ -21,18 +21,103 @@ jobs:
uses: jdx/mise-action@v3
with:
install: true
cache: false
cache: true
experimental: true

- name: Setup Go cache
uses: actions/cache@v4
with:
path: |
~/go/pkg/mod
~/.cache/go-build
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-

- name: Download Go dependencies
run: go mod download

format:
name: Format Check
runs-on: ubuntu-latest
needs: setup
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Install mise
uses: jdx/mise-action@v3
with:
install: true
cache: true
experimental: true

- name: Restore Go cache
uses: actions/cache@v4
with:
path: |
~/go/pkg/mod
~/.cache/go-build
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-

- name: Run format check
run: mise run format

lint:
name: Lint
runs-on: ubuntu-latest
needs: setup
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Install mise
uses: jdx/mise-action@v3
with:
install: true
cache: true
experimental: true

- name: Restore Go cache
uses: actions/cache@v4
with:
path: |
~/go/pkg/mod
~/.cache/go-build
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-

- name: Run lint
run: mise run lint

test:
name: Tests
runs-on: ubuntu-latest
needs: setup
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Install mise
uses: jdx/mise-action@v3
with:
install: true
cache: true
experimental: true

- name: Restore Go cache
uses: actions/cache@v4
with:
path: |
~/go/pkg/mod
~/.cache/go-build
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-

- name: Run tests
run: mise run test

Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,13 @@ jobs:
draft: false
prerelease: false

- name: Update latest tag
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git tag -f latest
git push -f origin latest

- name: Upload Caddy Binary (Linux AMD64)
uses: actions/upload-release-asset@v1
env:
Expand Down
Empty file added file1
Empty file.