Skip to content

Commit c3c8304

Browse files
committed
refactor: add better docs, add ci workflows
1 parent 3b034c6 commit c3c8304

30 files changed

+1017
-592
lines changed

.dvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2.2.12

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,4 +90,5 @@ assignees: ["Excoriate"] # Adjust if needed
9090
- [ ] I've shared relevant environment details
9191
- [ ] I've added diagnostic information (if applicable)
9292

93-
**Thank you for helping improve the `mcp-terraform-aws-provider-docs` server!** 🐛
93+
**Thank you for helping improve the `mcp-terraform-aws-provider-docs` server!**
94+
🐛

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,5 @@ assignees: ["Excoriate"] # Adjust if needed
5959
- [ ] I've described the proposed solution
6060
- [ ] I've explained the use case and value
6161

62-
**Thank you for helping improve the `mcp-terraform-aws-provider-docs` server!** 🎉
62+
**Thank you for helping improve the `mcp-terraform-aws-provider-docs` server!**
63+
🎉

.github/workflows/bump.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: 🔄 Bump version
2+
on:
3+
push:
4+
branches:
5+
- master
6+
- main
7+
jobs:
8+
bump:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
- name: 🔖 Bump version and push tag
13+
id: tag_version
14+
uses: mathieudutour/[email protected]
15+
with:
16+
github_token: ${{ secrets.GITHUB_TOKEN }}
17+
- name: 📦 Create a GitHub release
18+
uses: ncipollo/release-action@v1
19+
with:
20+
tag: ${{ steps.tag_version.outputs.new_tag }}
21+
name: Release ${{ steps.tag_version.outputs.new_tag }}
22+
body: ${{ steps.tag_version.outputs.changelog }}

.github/workflows/ci-docker.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: 🐳CI - Docker
2+
3+
on:
4+
workflow_dispatch:
5+
pull_request:
6+
types: [opened, synchronize]
7+
jobs:
8+
docker:
9+
name: 🐳 Build and Run Docker Image
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: 🔍 Checkout repository
13+
uses: actions/checkout@v4
14+
15+
- name: 📦 Build Docker image
16+
run: |
17+
docker build -t mcp-terraform-aws-provider-docs .
18+
19+
- name: 🐳 Run Docker container (smoke test)
20+
run: |
21+
docker run --rm -e GITHUB_TOKEN=fake_token mcp-terraform-aws-provider-docs || (
22+
echo "❌ Docker container failed to start. Check logs above." && exit 1
23+
)
24+
25+
- name: 🎉 CI Docker workflow completed successfully
26+
if: success()
27+
run: echo "✅ Docker image built and ran successfully!"
28+
- name: 🚨 CI Docker workflow failed
29+
if: failure()
30+
run: echo "❌ Docker build or run failed. Please review the logs above."
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: 🔍CI - TypeScript
2+
3+
on:
4+
workflow_dispatch:
5+
pull_request:
6+
types: [opened, synchronize]
7+
8+
jobs:
9+
typescript:
10+
name: 🔍 TypeScript Lint, Format, and Test
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: ⬇️ Checkout repository
14+
uses: actions/checkout@v4
15+
16+
- name: 📦 Setup Deno (latest stable)
17+
uses: denoland/setup-deno@v2
18+
with:
19+
deno-version: .dvmrc
20+
21+
- name: 🧹 Run Linter
22+
run: deno run lint
23+
24+
- name: 🎨 Run Formatter
25+
run: deno run fmt
26+
27+
- name: 🧪 Run Tests
28+
run: deno test
29+
30+
# User-friendly summary
31+
- name: 🎉 CI TypeScript workflow completed successfully
32+
if: success()
33+
run: echo "✅ All TypeScript checks passed!"
34+
- name: 🚨 CI TypeScript workflow failed
35+
if: failure()
36+
run: echo "❌ TypeScript checks failed. Please review the logs above."

.github/workflows/jsr-publish.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
name: Publish
22
on:
33
push:
4-
branches:
5-
- main
6-
- master
4+
tags:
5+
- '*'
76

87
jobs:
98
publish:

.vscode/settings.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
2-
"workbench.colorCustomizations": {
3-
"editor.lineHighlightBackground": "#0004072d",
4-
"editor.lineHighlightBorder": "#4ac3081f",
5-
"terminal.background": "#010d13f0",
6-
"activityBar.background": "#0E2C5A",
7-
"titleBar.activeForeground": "#595f68"
8-
}
9-
}
2+
"workbench.colorCustomizations": {
3+
"editor.lineHighlightBackground": "#0004072d",
4+
"editor.lineHighlightBorder": "#4ac3081f",
5+
"terminal.background": "#010d13f0",
6+
"activityBar.background": "#0E2C5A",
7+
"titleBar.activeForeground": "#595f68"
8+
}
9+
}

Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
FROM denoland/deno:alpine
22

3-
WORKDIR /app
3+
WORKDIR /app/src
44

5-
COPY . .
5+
COPY ../deno.json ../
6+
COPY src/ ./
67

78
# Cache dependencies (optional, for larger projects with deps.ts)
89
# RUN deno cache deps.ts

0 commit comments

Comments
 (0)