Skip to content
Merged
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
39 changes: 39 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: CI
on:
push:
workflow_dispatch:

permissions:
contents: read
pull-requests: read

jobs:
tests:
strategy:
matrix:
os: ["ubuntu-latest", "windows-latest", "macos-latest"]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '24.x'
cache: yarn

- name: Add .npmrc
run: cp .npmrc.template .npmrc

- name: Install dependencies
run: yarn

- name: Install Playwright Browsers
run: yarn playwright install

- name: Build
run: yarn run build

- name: Run tests
run: yarn test
8 changes: 5 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,13 @@ jobs:
packages: write

steps:
- uses: actions/checkout@v4
- name: Checkout
uses: actions/checkout@v4

- uses: actions/setup-node@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '20.x'
node-version: '24.x'
cache: yarn

- name: Install dependencies
Expand Down
19 changes: 9 additions & 10 deletions .github/workflows/sonar-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,28 +16,27 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node_version: [20.x]
node_version: [24.x]

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
token: ${{ secrets.GITHUB_TOKEN }}
# Generate a .npmrc file with the NPM_TOKEN
- uses: actions/setup-node@v4
- name: Checkout
uses: actions/checkout@v4

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node_version }}
cache: yarn

- name: Install
run: yarn install

- name: Check and Install Playwright
run: yarn playwright install
- name: Unit test run
run: yarn test:coverage

# Analyze with SonarCloud
- name: Analyze with SonarCloud
uses: SonarSource/sonarqube-scan-action@v5.0.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} # Generate a token on Sonarcloud.io, add it to the secrets of this repo with the name SONAR_TOKEN (Settings > Secrets > Actions > add new repository secret)
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} # Generate a token on Sonarcloud.io, add it to the secrets of this repo with the name SONAR_TOKEN (Settings > Secrets > Actions > add new repository secret)
44 changes: 22 additions & 22 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "internxt-crypto",
"version": "1.3.0",
"version": "1.3.1",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"module": "dist/index.js",
Expand All @@ -19,31 +19,31 @@
},
"devDependencies": {
"@eslint/js": "^10.0.1",
"@internxt/eslint-config-internxt": "2.0.1",
"@internxt/prettier-config": "https://github.com/internxt/prettier-config.git#v1.0.2",
"@playwright/test": "^1.54.2",
"@types/node": "^25.2.3",
"@vitest/browser-playwright": "^4.0.10",
"@vitest/coverage-istanbul": "^4.0.10",
"@vitest/coverage-v8": "^4.0.18",
"eslint": "^10.0.2",
"knip": "^5.84.0",
"lint-staged": "^16.1.4",
"playwright": "^1.54.1",
"prettier": "^3.6.2",
"tsdown": "^0.20.1",
"typescript": "^5.9.3",
"vitest": "^4.0.0"
"@internxt/eslint-config-internxt": "^2.1.0",
"@internxt/prettier-config": "^2.0.1",
"@playwright/test": "^1.59.1",
"@types/node": "^25.6.0",
"@vitest/browser-playwright": "^4.1.5",
"@vitest/coverage-istanbul": "^4.1.5",
"@vitest/coverage-v8": "^4.1.5",
"eslint": "^10.3.0",
"knip": "^6.11.0",
"lint-staged": "^17.0.2",
"playwright": "^1.59.1",
"prettier": "^3.8.3",
"tsdown": "^0.21.10",
"typescript": "^6.0.3",
"vitest": "^4.1.5"
},
"dependencies": {
"@noble/ciphers": "^2.1.1",
"@noble/curves": "^2.0.1",
"@noble/hashes": "^2.0.1",
"@noble/post-quantum": "^0.5.2",
"@scure/bip39": "^2.0.1",
"@noble/ciphers": "^2.2.0",
"@noble/curves": "^2.2.0",
"@noble/hashes": "^2.2.0",
"@noble/post-quantum": "^0.6.1",
"@scure/bip39": "^2.2.0",
"hash-wasm": "^4.12.0",
"husky": "^9.1.7",
"uuid": "^13.0.0"
"uuid": "^14.0.0"
},
"exports": {
".": {
Expand Down
Loading
Loading