Skip to content

Commit 1f3c81a

Browse files
authored
Merge pull request #1 from MasterKale/feat/mdoc-verification
Add mdoc verification
2 parents 65bf307 + b1c1011 commit 1f3c81a

39 files changed

+1823
-330
lines changed

.github/workflows/ciChecks.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: CI Checks
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
unit_tests:
11+
runs-on: ubuntu-latest
12+
13+
strategy:
14+
matrix:
15+
deno-version: ["v2.1.x"]
16+
17+
steps:
18+
- uses: actions/checkout@v4
19+
20+
# Install Deno
21+
- name: Setup Deno ${{ matrix.deno-version }}
22+
uses: denoland/setup-deno@v2
23+
with:
24+
deno-version: ${{ matrix.deno-version }}
25+
26+
- name: Confirm installed Deno version
27+
run: deno -V
28+
29+
# Set up caching for quicker installs
30+
- name: Get DENO_DIR store directory
31+
shell: bash
32+
# Expecting "DENO_DIR location: /Users/matt/Library/Caches/deno" somewhere in `deno info`
33+
run: |
34+
echo "DENO_DIR=$(deno info | grep "DENO_DIR" | awk '{print $3}')" >> $GITHUB_ENV
35+
36+
- name: Setup Deno cache
37+
uses: actions/cache@v4
38+
with:
39+
path: ${{ env.DENO_DIR }}
40+
key: ${{ runner.os }}-deno-dir-${{ hashFiles('**/deno.lock') }}
41+
restore-keys: |
42+
${{ runner.os }}-deno-dir-
43+
44+
# Install deps
45+
- name: Install dependencies
46+
run: deno install
47+
48+
# Build and test packages
49+
- name: Test @simpledigicreds/server
50+
run: cd packages/server && deno task test

.vscode/settings.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"editor.formatOnSave": true,
33
"deno.enable": true,
44
"deno.path": "/opt/homebrew/bin/deno",
5+
"deno.config": "./deno.json",
56
"[typescript]": {
67
"editor.defaultFormatter": "denoland.vscode-deno"
78
},

deno.lock

Lines changed: 76 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

example/static/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ <h1>SimpleDigiCreds Example Site</h1>
7070
let response;
7171
try {
7272
response = await navigator.credentials.get(optionsJSON);
73+
console.log("Raw response:", response);
7374
printDebug("Response", response.data);
7475
} catch (err) {
7576
elemError.innerText = `${err}`;

packages/server/deno.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,12 @@
33
"version": "0.0.3",
44
"exports": "./src/index.ts",
55
"imports": {
6-
"@std/encoding": "jsr:@std/encoding@^1.0.6"
6+
"@hexagon/base64": "npm:@hexagon/base64@^2.0.4",
7+
"@levischuck/tiny-cbor": "jsr:@levischuck/tiny-cbor@^0.2.11",
8+
"@peculiar/asn1-ecc": "npm:@peculiar/asn1-ecc@^2.3.15",
9+
"@peculiar/asn1-rsa": "npm:@peculiar/asn1-rsa@^2.3.15",
10+
"@peculiar/asn1-schema": "npm:@peculiar/asn1-schema@^2.3.15",
11+
"@peculiar/asn1-x509": "npm:@peculiar/asn1-x509@^2.3.15"
712
},
813
"tasks": {
914
"test": "deno test -A src/",

0 commit comments

Comments
 (0)