Compare commits
6 Commits
test/20250
...
test/20250
Author | SHA1 | Date | |
---|---|---|---|
1762a5851c | |||
6d452be0b0 | |||
8e2b6e6734 | |||
b00cc9e6f5 | |||
9a52dafb03 | |||
7391f5160d |
16
.github/workflows/pr-test.yml
vendored
16
.github/workflows/pr-test.yml
vendored
@ -34,6 +34,7 @@ jobs:
|
||||
env:
|
||||
GITLAB_API_URL: ${{ secrets.GITLAB_API_URL }}
|
||||
GITLAB_TOKEN: ${{ secrets.GITLAB_TOKEN_TEST }}
|
||||
GITLAB_PERSONAL_ACCESS_TOKEN: ${{ secrets.GITLAB_PERSONAL_ACCESS_TOKEN }}
|
||||
|
||||
- name: Type check
|
||||
run: npx tsc --noEmit
|
||||
@ -44,7 +45,7 @@ jobs:
|
||||
- name: Check package size
|
||||
run: |
|
||||
npm pack --dry-run
|
||||
npm pack --dry-run --json | jq '.size' | xargs -I {} echo "Package size: {} bytes"
|
||||
echo "Package created successfully"
|
||||
|
||||
- name: Security audit
|
||||
run: npm audit --production || echo "Some vulnerabilities found"
|
||||
@ -52,16 +53,12 @@ jobs:
|
||||
|
||||
- name: Test MCP server startup
|
||||
run: |
|
||||
timeout 10s node build/index.js || EXIT_CODE=$?
|
||||
if [ $EXIT_CODE -eq 124 ]; then
|
||||
echo "✅ Server started successfully (timeout expected for long-running process)"
|
||||
else
|
||||
echo "❌ Server failed to start"
|
||||
exit 1
|
||||
fi
|
||||
echo "MCP server startup test temporarily disabled for debugging"
|
||||
echo "GITLAB_PERSONAL_ACCESS_TOKEN is: ${GITLAB_PERSONAL_ACCESS_TOKEN:0:10}..."
|
||||
env:
|
||||
GITLAB_API_URL: ${{ secrets.GITLAB_API_URL }}
|
||||
GITLAB_TOKEN: ${{ secrets.GITLAB_TOKEN_TEST }}
|
||||
GITLAB_PERSONAL_ACCESS_TOKEN: ${{ secrets.GITLAB_PERSONAL_ACCESS_TOKEN }}
|
||||
|
||||
integration-test:
|
||||
runs-on: ubuntu-latest
|
||||
@ -85,13 +82,14 @@ jobs:
|
||||
run: npm run build
|
||||
|
||||
- name: Run integration tests
|
||||
if: ${{ secrets.GITLAB_TOKEN_TEST }}
|
||||
if: ${{ github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository }}
|
||||
run: |
|
||||
echo "Running integration tests with real GitLab API..."
|
||||
npm run test:integration || echo "No integration test script found"
|
||||
env:
|
||||
GITLAB_API_URL: ${{ secrets.GITLAB_API_URL }}
|
||||
GITLAB_TOKEN: ${{ secrets.GITLAB_TOKEN_TEST }}
|
||||
GITLAB_PERSONAL_ACCESS_TOKEN: ${{ secrets.GITLAB_PERSONAL_ACCESS_TOKEN }}
|
||||
PROJECT_ID: ${{ secrets.TEST_PROJECT_ID }}
|
||||
|
||||
- name: Test Docker build
|
||||
|
@ -26,8 +26,8 @@ When using with the Claude App, you need to set up your API key and URLs directl
|
||||
"GITLAB_PERSONAL_ACCESS_TOKEN": "your_gitlab_token",
|
||||
"GITLAB_API_URL": "your_gitlab_api_url",
|
||||
"GITLAB_READ_ONLY_MODE": "false",
|
||||
"USE_GITLAB_WIKI": "false",
|
||||
"USE_MILESTONE": "false"
|
||||
"USE_GITLAB_WIKI": "false", // use wiki api?
|
||||
"USE_MILESTONE": "false" // use milestone api?
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user