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
7 changes: 7 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM mcr.microsoft.com/devcontainers/javascript-node:4.0.6-trixie

RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
&& apt-get -y upgrade && apt-get install -y dbus-x11 gnome-keyring

RUN SNIPPET='eval $(dbus-launch --sh-syntax) && eval $(echo -n test | gnome-keyring-daemon --unlock)' \
&& echo "$SNIPPET" >> "/home/node/.bashrc"
13 changes: 13 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"$schema": "https://raw.githubusercontent.com/devcontainers/spec/refs/heads/main/schemas/devContainer.schema.json",
"name": "gnome-keyring",
"dockerFile": "Dockerfile",
"customizations": {
"vscode": {
"extensions": [
"editorconfig.editorconfig",
"connor4312.nodejs-testing"
]
}
}
}
13 changes: 3 additions & 10 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
runs-on: ${{ matrix.platform }}

steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
with:
submodules: true
- name: Install pnpm
Expand All @@ -30,17 +30,10 @@ jobs:
cache: 'pnpm'
- name: Dependencies
run: pnpm install -r
- name: Install system components
- name: dbus and gnome-keyring
uses: t1m0thyj/unlock-keyring@v1
if: matrix.platform == 'ubuntu-latest'
run: |
sudo apt-get update -y
sudo apt-get install -y gnome-keyring dbus dbus-x11
- name: dbus, if needed
if: matrix.platform == 'ubuntu-latest'
run: |
dbus-run-session -- bash -c "rm -f $HOME/.local/share/keyrings/* && echo -n "test" | gnome-keyring-daemon --unlock && npm run build"
- name: Test ${{ matrix.node-version }} ${{ matrix.platform }}
if: matrix.platform != 'ubuntu-latest'
run: npm run build
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
Expand Down
12 changes: 4 additions & 8 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,17 @@ jobs:
contents: write
id-token: write
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v6
with:
node-version: 24
registry-url: 'https://registry.npmjs.org'
cache: pnpm
- run: pnpm i -r
- name: Install system components
run: |
sudo apt-get update -y
sudo apt-get install -y gnome-keyring dbus dbus-x11
- name: dbus, if needed
run: |
dbus-run-session -- bash -c "rm -f $HOME/.local/share/keyrings/* && echo -n "test" | gnome-keyring-daemon --unlock && npm run build"
- name: dbus and gnome-keyring
uses: t1m0thyj/unlock-keyring@v1
- run: npm run build
- run: npm pkg delete devDependencies scripts
- name: Deploy Docs
uses: peaceiris/actions-gh-pages@v4
Expand Down
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
.cert/
.pnpm-store/
.vscode/
coverage/
docs/
lib/
node_modules/
.pnpm-store/
.devcontainer/
18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,27 +45,27 @@
},
"dependencies": {
"@cto.af/log": "1.3.3",
"@cto.af/utils": "1.3.6",
"@cto.af/utils": "1.4.1",
"@napi-rs/keyring": "1.2.0",
"commander": "14.0.2",
"env-paths": "3.0.0",
"filenamify": "7.0.1",
"jsrsasign": "11.1.0"
},
"devDependencies": {
"@cto.af/eslint-config": "6.2.1",
"@cto.af/eslint-config": "6.2.3",
"@eslint/markdown": "7.5.1",
"@types/jsrsasign": "10.5.15",
"@types/node": "24.10.1",
"@types/node": "25.0.8",
"c8": "10.1.3",
"eslint": "9.39.1",
"eslint-plugin-jsdoc": "61.4.1",
"tsdown": "0.17.0-beta.3",
"typedoc": "0.28.15",
"eslint": "9.39.2",
"eslint-plugin-jsdoc": "62.0.0",
"tsdown": "0.20.0-beta.3",
"typedoc": "0.28.16",
"typescript": "5.9.3",
"typescript-eslint": "8.48.0"
"typescript-eslint": "8.53.0"
},
"packageManager": "pnpm@10.24.0",
"packageManager": "pnpm@10.28.0",
"engines": {
"node": ">=20"
}
Expand Down
Loading