@@ -59,14 +59,19 @@ jobs:
5959 go-version : ${{ env.GO_VERSION }}
6060 cache : true
6161 -
62- name : Install deps
62+ name : Install deps (ubuntu)
6363 if : startsWith(matrix.os, 'ubuntu-')
6464 run : |
6565 sudo apt-get update
6666 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
6772 -
6873 name : GPG conf
69- if : startsWith(matrix.os, 'ubuntu -')
74+ if : ${{ ! startsWith(matrix.os, 'windows -') }}
7075 uses : actions/github-script@v6
7176 id : gpg
7277 with :
@@ -83,18 +88,21 @@ jobs:
8388 core.setOutput('passphrase', fs.readFileSync('.github/workflows/fixtures/7D851EB72D73BDA0.pass', {encoding: 'utf8'}));
8489 -
8590 name : Import GPG key
86- if : startsWith(matrix.os, 'ubuntu -')
91+ if : ${{ ! startsWith(matrix.os, 'windows -') }}
8792 uses : crazy-max/ghaction-import-gpg@v5
8893 with :
8994 gpg_private_key : ${{ steps.gpg.outputs.key }}
9095 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
91103 -
92104 name : Test
93105 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
98106 make test COVERAGEDIR=${{ env.DESTDIR }}
99107 shell : bash
100108 -
0 commit comments