Skip to content

Commit

Permalink
Merge branch 'main' into dev/test-cov
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasjhan authored Dec 16, 2023
2 parents ff0e148 + a2da7eb commit be4a93e
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
25 changes: 25 additions & 0 deletions .github/workflows/test-pr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Run Tests on PR

on:
pull_request:
branches: [main]

jobs:
test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '20'
cache: 'pnpm' # Enables caching for pnpm
- name: Install pnpm
run: npm install -g pnpm
- name: Install Dependencies
run: pnpm install
- name: Run Tests(Unit)
run: pnpm test
- name: Run Tests(E2E)
run: pnpm test:e2e
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ export class SDJwtInstance {
if (!sdjwt.jwt) {
return false;
}
const validated = this.validate(encodedSDJwt, publicKey);
const validated = await this.validate(encodedSDJwt, publicKey);
if (!validated) {
return false;
}
Expand Down

0 comments on commit be4a93e

Please sign in to comment.