Skip to content

Commit bf6ff3d

Browse files
Attempt to fix keyring errors in CI
1 parent ab1631f commit bf6ff3d

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/workflows/test.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,22 @@ jobs:
2323
check-latest: true
2424
cache: true
2525

26+
- name: Install keyring dependencies
27+
run: |
28+
sudo apt-get update
29+
sudo apt-get install -y gnome-keyring dbus-x11
30+
31+
- name: Start D-Bus and keyring
32+
run: |
33+
# Start D-Bus session
34+
eval $(dbus-launch --sh-syntax)
35+
echo "DBUS_SESSION_BUS_ADDRESS=$DBUS_SESSION_BUS_ADDRESS" >> $GITHUB_ENV
36+
37+
# Initialize gnome-keyring with a test password
38+
echo 'test' | gnome-keyring-daemon --unlock
39+
eval $(echo 'test' | gnome-keyring-daemon --start --components=secrets)
40+
echo "GNOME_KEYRING_CONTROL=$GNOME_KEYRING_CONTROL" >> $GITHUB_ENV
41+
2642
- name: Build
2743
run: go build ./...
2844

0 commit comments

Comments
 (0)