Skip to content
Open
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
5 changes: 5 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Required for running tests.
# Copy this file to .env.test and fill in the values.
#
# Base64-encoded ES256 private key (PEM body only, without BEGIN/END markers)
JWT_PRIVATE_KEY=""
26 changes: 26 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Lines starting with '#' are comments.
#
# GUIDELINES:
# Each line is a file pattern followed by one or more owners.
# Owners bear a responsibility to the organization and the users of this
# application. Repository administrators have the ability to merge pull
# requests that have not yet received the requisite reviews as outlined
# in this file. Do not force merge any PR without confidence that it
# follows all policies or without full understanding of the impact of
# those changes on build, release and publishing outcomes.
#
# The CODEOWNERS file constitutes an agreement amongst organisation
# admins and maintainers to restrict approval capabilities to a subset
# of contributors. Modifications to this file result in a modification of
# that agreement and can only be approved by those with the knowledge
# and responsibility to publish libraries under the Web3auth name.

# Fallback for all other files
* @Web3auth/Web3Auth-Admins

# Product code
**/src/ @Web3auth/Web3Auth-Product
**/test/ @Web3auth/Web3Auth-Product

# Most restrictive — last match wins
.github/CODEOWNERS @Web3auth/Web3Auth-Admins
36 changes: 36 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Build, Test & Lint

on: [push]

jobs:
test:
strategy:
matrix:
node: ["24.x"]
os: [ubuntu-latest]

runs-on: ${{ matrix.os }}

steps:
- name: Check out Git repository
uses: actions/checkout@v6

- name: Set up node
uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node }}
cache: "npm"

- name: Install dependencies
run: npm ci

- name: Build
run: npm run build

- name: Lint
run: npm run lint

- name: Test
run: npm run test
env:
JWT_PRIVATE_KEY: ${{ secrets.JWT_PRIVATE_KEY }}
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ typings/
.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/

# Optional REPL history
.node_repl_history
Expand Down
7 changes: 0 additions & 7 deletions .mocharc.json

This file was deleted.

1 change: 0 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ typings/
.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/

# Optional REPL history
.node_repl_history
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
>=18.x
>=24.x
1 change: 0 additions & 1 deletion babel.config.js

This file was deleted.

7 changes: 6 additions & 1 deletion eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,12 @@ export default [
rules: {
camelcase: 0,
"n/no-unpublished-import": "off",
"mocha/no-setup-in-describe": "off",
},
},
{
files: ["**/eslint.config.mjs", "**/test/**"],
rules: {
"import/no-extraneous-dependencies": "off",
},
},
];
Loading