Skip to content

Commit eec6d8a

Browse files
Jabenclaude
andcommitted
Add Gotenberg service and test runner to GitHub Actions
- Configure Gotenberg service container with basic auth - Add health checks for service readiness - Include test restore, build, and execution steps - Pass Gotenberg connection credentials to tests 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 9e6deca commit eec6d8a

1 file changed

Lines changed: 31 additions & 2 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 31 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,23 @@ jobs:
88
strategy:
99
matrix:
1010
dotnet-version: [8.x]
11-
11+
12+
services:
13+
gotenberg:
14+
image: gotenberg/gotenberg:8
15+
ports:
16+
- 3000:3000
17+
env:
18+
GOTENBERG_API_BASIC_AUTH_USERNAME: testuser
19+
GOTENBERG_API_BASIC_AUTH_PASSWORD: testpass
20+
options: >-
21+
--health-cmd "curl -f http://localhost:3000/health || exit 1"
22+
--health-interval 10s
23+
--health-timeout 5s
24+
--health-retries 5
25+
volumes:
26+
- ${{ github.workspace }}:/workspace
27+
1228
steps:
1329
- name: Checkout
1430
uses: actions/checkout@v4
@@ -30,7 +46,20 @@ jobs:
3046
uses: gittools/actions/gitversion/execute@v1.1.1
3147
with:
3248
useConfigFile: true
33-
49+
50+
- name: Restore dependencies
51+
run: dotnet restore
52+
53+
- name: Build
54+
run: dotnet build --no-restore -c Release
55+
56+
- name: Run tests
57+
run: dotnet test --no-build -c Release --verbosity normal
58+
env:
59+
GOTENBERG_URL: http://localhost:3000
60+
GOTENBERG_USERNAME: testuser
61+
GOTENBERG_PASSWORD: testpass
62+
3463
- name: Pack
3564
run: dotnet pack -c Release -p:PackageVersion=${{ steps.gitversion.outputs.nuGetVersion }} -p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg
3665

0 commit comments

Comments
 (0)