@@ -59,14 +59,19 @@ jobs:
59
59
go-version : ${{ env.GO_VERSION }}
60
60
cache : true
61
61
-
62
- name : Install deps
62
+ name : Install deps (ubuntu)
63
63
if : startsWith(matrix.os, 'ubuntu-')
64
64
run : |
65
65
sudo apt-get update
66
66
sudo apt-get install -y dbus-x11 gnome-keyring libsecret-1-dev pass
67
+ -
68
+ name : Install deps (macOS)
69
+ if : startsWith(matrix.os, 'macOS-')
70
+ run : |
71
+ brew install pass
67
72
-
68
73
name : GPG conf
69
- if : startsWith(matrix.os, 'ubuntu -')
74
+ if : ${{ ! startsWith(matrix.os, 'windows -') }}
70
75
uses : actions/github-script@v6
71
76
id : gpg
72
77
with :
@@ -83,18 +88,21 @@ jobs:
83
88
core.setOutput('passphrase', fs.readFileSync('.github/workflows/fixtures/7D851EB72D73BDA0.pass', {encoding: 'utf8'}));
84
89
-
85
90
name : Import GPG key
86
- if : startsWith(matrix.os, 'ubuntu -')
91
+ if : ${{ ! startsWith(matrix.os, 'windows -') }}
87
92
uses : crazy-max/ghaction-import-gpg@v5
88
93
with :
89
94
gpg_private_key : ${{ steps.gpg.outputs.key }}
90
95
passphrase : ${{ steps.gpg.outputs.passphrase }}
96
+ -
97
+ name : Init pass
98
+ if : ${{ !startsWith(matrix.os, 'windows-') }}
99
+ run : |
100
+ echo -e "trust\n5\ny" | gpg --batch --no-tty --command-fd 0 --edit-key 7D851EB72D73BDA0
101
+ pass init 7D851EB72D73BDA0
102
+ shell : bash
91
103
-
92
104
name : Test
93
105
run : |
94
- if [[ "${{ matrix.os }}" = ubuntu-* ]]; then
95
- echo -e "trust\n5\ny" | gpg --batch --no-tty --command-fd 0 --edit-key 7D851EB72D73BDA0
96
- pass init 7D851EB72D73BDA0
97
- fi
98
106
make test COVERAGEDIR=${{ env.DESTDIR }}
99
107
shell : bash
100
108
-
0 commit comments