Skip to content

Commit

Permalink
feat(didcomm): first working iteration
Browse files Browse the repository at this point in the history
  • Loading branch information
beatt83 committed Feb 6, 2024
1 parent b82ba2e commit 2d53c89
Show file tree
Hide file tree
Showing 58 changed files with 2,168 additions and 406 deletions.
38 changes: 38 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: ''
assignees: ''

---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Desktop (please complete the following information):**
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]

**Smartphone (please complete the following information):**
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]

**Additional context**
Add any other context about the problem here.
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: ''
assignees: ''

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
47 changes: 47 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Release Docs

on:
push:
tags: '*'

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

permissions:
contents: read
pages: write
id-token: write

jobs:
build-docs:
runs-on: macos-13

steps:
- uses: actions/checkout@v3
- name: Set up Pages
uses: actions/configure-pages@v1

- name: Set up Swift
uses: fwal/setup-swift@v1
with:
swift-version: '5.8'

- name: Generate Docs
run: xcodebuild docbuild -scheme didcomm-swift -destination "platform=macOS" -derivedDataPath ./doccBuild OTHER_DOCC_FLAGS="--transform-for-static-hosting --output-path ./docc --hosting-base-path '/didcomm-swift'"

- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: ./docc

deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build-docs

steps:
- name: Deploy Docs
uses: actions/deploy-pages@v1
23 changes: 23 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Release

on:
push:
branches: [ "main" ]

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

permissions:
contents: read
pages: write
id-token: write

jobs:
test:
runs-on: macos-13

steps:
- uses: actions/checkout@v3
- name: Build
run: xcodebuild build test -scheme "didcomm-swift" -destination "platform=macOS" -resultBundlePath TestResults
27 changes: 27 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: PR

on:
pull_request:
branches: [ "main" ]

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
test:

runs-on: macos-13

steps:
- uses: actions/checkout@v3
- name: Build
run: xcodebuild build test -scheme "didcomm-swift" -destination "platform=macOS" -resultBundlePath TestResults

- name: Publish tests results
uses: kishikawakatsumi/xcresulttool@v1.7.1
with:
path: TestResults.xcresult
show-code-coverage: true
if: success() || failure()

4 changes: 2 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ let package = Package(
targets: ["DIDCommSwift"]),
],
dependencies: [
.package(path: "../didcore-swift"),
.package(path: "../jose-swift")
.package(url: "https://github.com/beatt83/didcore-swift.git", .upToNextMinor(from: "1.1.0")),
.package(url: "https://github.com/beatt83/jose-swift.git", .upToNextMinor(from: "1.2.1"))
],
targets: [
// Targets are the basic building blocks of a package, defining a module or a test suite.
Expand Down
Loading

0 comments on commit 2d53c89

Please sign in to comment.