19
19
20
20
jobs :
21
21
validate :
22
- runs-on : ubuntu-20 .04
22
+ runs-on : ubuntu-22 .04
23
23
strategy :
24
24
fail-fast : false
25
25
matrix :
44
44
fail-fast : false
45
45
matrix :
46
46
os :
47
+ - ubuntu-22.04
47
48
- ubuntu-20.04
48
49
- macOS-11
49
50
- windows-2022
@@ -59,13 +60,13 @@ jobs:
59
60
cache : true
60
61
-
61
62
name : Install deps
62
- if : ${{ matrix.os == 'ubuntu-20.04' }}
63
+ if : startsWith( matrix.os, 'ubuntu-')
63
64
run : |
64
65
sudo apt-get update
65
66
sudo apt-get install -y dbus-x11 gnome-keyring libsecret-1-dev pass
66
67
-
67
68
name : GPG conf
68
- if : ${{ matrix.os == 'ubuntu-20.04' }}
69
+ if : startsWith( matrix.os, 'ubuntu-')
69
70
uses : actions/github-script@v6
70
71
id : gpg
71
72
with :
@@ -82,15 +83,15 @@ jobs:
82
83
core.setOutput('passphrase', fs.readFileSync('.github/workflows/fixtures/7D851EB72D73BDA0.pass', {encoding: 'utf8'}));
83
84
-
84
85
name : Import GPG key
85
- if : ${{ matrix.os == 'ubuntu-20.04' }}
86
+ if : startsWith( matrix.os, 'ubuntu-')
86
87
uses : crazy-max/ghaction-import-gpg@v5
87
88
with :
88
89
gpg_private_key : ${{ steps.gpg.outputs.key }}
89
90
passphrase : ${{ steps.gpg.outputs.passphrase }}
90
91
-
91
92
name : Test
92
93
run : |
93
- if [ "${{ matrix.os }}" = " ubuntu-20.04" ]; then
94
+ if [[ "${{ matrix.os }}" = ubuntu-* ] ]; then
94
95
echo -e "trust\n5\ny" | gpg --batch --no-tty --command-fd 0 --edit-key 7D851EB72D73BDA0
95
96
pass init 7D851EB72D73BDA0
96
97
fi
@@ -104,7 +105,7 @@ jobs:
104
105
file : ./coverage.txt
105
106
106
107
test-sandboxed :
107
- runs-on : ubuntu-20 .04
108
+ runs-on : ubuntu-22 .04
108
109
steps :
109
110
-
110
111
name : Checkout
@@ -127,7 +128,7 @@ jobs:
127
128
file : ${{ env.DESTDIR }}//coverage.txt
128
129
129
130
build :
130
- runs-on : ubuntu-20 .04
131
+ runs-on : ubuntu-22 .04
131
132
steps :
132
133
-
133
134
name : Checkout
@@ -173,7 +174,7 @@ jobs:
173
174
files : ${{ env.DESTDIR }}/*
174
175
175
176
build-deb :
176
- runs-on : ubuntu-20 .04
177
+ runs-on : ubuntu-22 .04
177
178
steps :
178
179
-
179
180
name : Checkout
0 commit comments