Skip to content
Closed
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
33 changes: 33 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
root = true

[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
indent_style = space
indent_size = 2

[*.swift]
indent_size = 4

[*.{rs,go}]
indent_size = 4

[*.md]
trim_trailing_whitespace = false
indent_size = unset

[LICENSE]
indent_size = unset

# Generated report pages and trend data
[initial-pages/**]
indent_size = unset
indent_style = unset

[latest-history/**]
insert_final_newline = unset

[Makefile]
indent_style = tab
3 changes: 3 additions & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# style: auto-fix and manually resolve all lint errors across the repo
# Mass formatting. No logic changes.
856bdf4d132fa3289f66c04d90b5275811acb61b
46 changes: 46 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# Normalize all text files to LF
* text=auto eol=lf

# Scripts -- must be LF (executed in Docker/Linux)
*.sh text eol=lf
*.bash text eol=lf

# Data/config
*.sql text eol=lf
*.yaml text eol=lf
*.yml text eol=lf
*.json text eol=lf
*.toml text eol=lf
*.properties text eol=lf

# Source code
*.scala text eol=lf
*.kt text eol=lf
*.kts text eol=lf
*.java text eol=lf
*.swift text eol=lf
*.ts text eol=lf
*.js text eol=lf
*.rs text eol=lf
*.go text eol=lf

# Docs
*.md text eol=lf
*.txt text eol=lf

# Docker
Dockerfile text eol=lf
docker-compose*.yml text eol=lf

# Binary -- never touch
*.png binary
*.jpg binary
*.jpeg binary
*.gif binary
*.ico binary
*.jar binary
*.zip binary
*.tar.gz binary
*.woff binary
*.woff2 binary
*.ttf binary
2 changes: 1 addition & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ updates:
groups:
npm-deps:
patterns:
- "*"
- "*"
1 change: 0 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,3 @@ jobs:

- name: Run tests
run: npm test

10 changes: 10 additions & 0 deletions .github/workflows/file-hygiene.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: File Hygiene

on:
pull_request:
push:
branches: [main]

jobs:
lint:
uses: hyperledger-identus/.github/.github/workflows/lint-files.yml@f2c9e417fa46f69b015a9cdbaafdfb9e52e4ed60 # main
16 changes: 8 additions & 8 deletions .github/workflows/integration-manual.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Manual Integration Tests

on:
workflow_dispatch:
inputs:
inputs:
cloud_agent_version:
description: 'Cloud agent version (e.g., 2.0.0)'
required: true
Expand All @@ -26,13 +26,13 @@ on:
required: false
default: ''
type: string

sdk_swift_version:
description: 'Swift SDK version (e.g., 7.2.0)'
required: false
default: ''
type: string

sdk_kmp_version:
description: 'Kotlin Multiplatform SDK version (e.g., 4.0.0)'
required: false
Expand Down Expand Up @@ -79,12 +79,12 @@ jobs:
env:
GH_TOKEN: ${{ secrets.IDENTUS_CI }}
RUN_ID: ${{ github.run_id }}
CLOUD_AGENT_VERSION: ${{ github.event.inputs.cloud_agent_version }}
MEDIATOR_VERSION: ${{ github.event.inputs.mediator_version }}
CLOUD_AGENT_VERSION: ${{ github.event.inputs.cloud_agent_version }}
MEDIATOR_VERSION: ${{ github.event.inputs.mediator_version }}
PRISM_NODE_VERSION: ${{ github.event.inputs.prism_node_version }}
SDK_TS_VERSION: ${{ github.event.inputs.sdk_ts_version }}
SDK_KMP_VERSION: ${{ github.event.inputs.sdk_kmp_version }}
SDK_SWIFT_VERSION: ${{ github.event.inputs.sdk_swift_version }}
SDK_TS_VERSION: ${{ github.event.inputs.sdk_ts_version }}
SDK_KMP_VERSION: ${{ github.event.inputs.sdk_kmp_version }}
SDK_SWIFT_VERSION: ${{ github.event.inputs.sdk_swift_version }}
CLOUD_SERVICE_TOKEN: ${{ secrets.CLOUD_SERVICE_TOKEN }}
CLOUD_SERVICE_URL: ${{ secrets.CLOUD_SERVICE_URL }}
CLOUD_SERVICE_TEMPLATE_ID: ${{ secrets.CLOUD_SERVICE_TEMPLATE_ID }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ jobs:
path: tmp/sdk-kmp
run-id: ${{ inputs.run-id }}
github-token: ${{ secrets.IDENTUS_CI }}

- name: Download sdk-swift
if: inputs.sdk-swift
continue-on-error: true
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/update-page.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,4 @@ jobs:

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@cd2ce8fcbc39b97be8ca5fce6e763baed58fa128 # v5.0.0
uses: actions/deploy-pages@cd2ce8fcbc39b97be8ca5fce6e763baed58fa128 # v5.0.0
9 changes: 9 additions & 0 deletions .markdownlint-cli2.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# markdownlint-cli2 configuration
# https://github.com/DavidAnson/markdownlint-cli2

# Ignore patterns
ignores:
- "**/target/**"
- "**/node_modules/**"
- ".claude/**"
- "**/build/**"
26 changes: 26 additions & 0 deletions .markdownlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# markdownlint configuration
# https://github.com/DavidAnson/markdownlint/blob/main/doc/Rules.md

default: true

# Allow long lines (common in tables, URLs, and generated content)
MD013: false

# Allow multiple top-level headings (common in multi-section docs)
MD025: false

# Allow inline HTML (needed for badges, details/summary, etc.)
MD033: false

# Allow duplicate headings in different sections
MD024:
siblings_only: true

# Allow emphasis as heading
MD036: false

# Allow compact table style
MD060: false

# Allow code blocks without language
MD040: false
33 changes: 33 additions & 0 deletions .yamllint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
extends: default

rules:
# Allow long lines (common in CI workflows and docker-compose)
line-length: disable

# Allow truthy values like 'on' (used in GitHub Actions triggers)
truthy:
allowed-values: ["true", "false", "yes", "no", "on"]

# Relaxed comment indentation
comments-indentation: disable

# Don't require document start marker
document-start: disable

# Relaxed bracket/brace spacing
brackets:
min-spaces-inside: 0
max-spaces-inside: 1
braces:
min-spaces-inside: 0
max-spaces-inside: 1

# Allow 1 space before comment
comments:
min-spaces-from-content: 1

ignore: |
node_modules/
.claude/
.pre-commit-config.yaml
13 changes: 12 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,23 +14,27 @@ Thank you for your interest in contributing! This document provides guidelines a
### Initial Setup

1. **Fork and clone the repository**

```bash
git clone https://github.com/YOUR_USERNAME/integration.git
cd integration
```

2. **Install dependencies**

```bash
npm ci
```

3. **Set up environment variables**

```bash
cp .env.example .env
# Edit .env with your configuration
```

4. **Verify setup**

```bash
npm test
```
Expand Down Expand Up @@ -102,6 +106,7 @@ npm run test:coverage
### Test Examples

See `tests/` directory for examples:

- `tests/report.test.ts`: Report generation tests
- `tests/validation.test.ts`: Validation tests
- `tests/slack.test.ts`: Slack notification tests
Expand All @@ -111,6 +116,7 @@ See `tests/` directory for examples:
### Adding a New Runner

1. **Create runner class**

```typescript
// src/test-runner/new-runner.ts
import { TestRunner } from "./test-runner.js";
Expand Down Expand Up @@ -150,6 +156,7 @@ See `tests/` directory for examples:
### Local Development

1. **Enable debug mode**

```bash
export DEBUG=true
```
Expand All @@ -165,16 +172,19 @@ See `tests/` directory for examples:
### Common Debugging Scenarios

**Issue: Tests failing**

- Check environment variables are set
- Verify Node.js version
- Check test output for specific errors

**Issue: Workflow failures**

- Check GitHub Actions logs
- Verify secrets are configured
- Test locally with same inputs

**Issue: Report generation issues**

- Check that Allure results exist
- Verify directory permissions
- Check for disk space issues
Expand Down Expand Up @@ -218,6 +228,7 @@ See `tests/` directory for examples:
### Commit Messages

Follow conventional commits format:

```
type(scope): subject

Expand All @@ -227,6 +238,7 @@ footer (optional)
```

Examples:

- `fix(report): correct race condition in processRunners`
- `feat(runner): add support for new SDK`
- `docs(readme): update setup instructions`
Expand Down Expand Up @@ -266,4 +278,3 @@ Examples:
## License

By contributing, you agree that your contributions will be licensed under the same license as the project (ISC).

Loading
Loading