File tree 3 files changed +15
-2
lines changed
3 files changed +15
-2
lines changed Original file line number Diff line number Diff line change 7
7
8
8
jobs :
9
9
rspec :
10
- timeout-minutes : 10
10
+ timeout-minutes : 15
11
11
runs-on : ${{ matrix.os }}-latest
12
12
13
13
strategy :
14
+ fail-fast : false
14
15
matrix :
15
16
ruby-version :
16
17
- ' 2.6'
19
20
- ' 3.1'
20
21
os :
21
22
- ubuntu
23
+ - windows
24
+
25
+ # Tempfile behavior has changed on Ruby 3.1 such that tests
26
+ # fail with permission denied. Would welcome a PR with a fix.
27
+ exclude :
28
+ - ruby-version : ' 3.1'
29
+ os : windows
22
30
23
31
steps :
24
32
- uses : actions/checkout@v2
Original file line number Diff line number Diff line change 2
2
3
3
require 'childprocess'
4
4
require 'tempfile'
5
+ require 'overcommit/os'
5
6
6
7
module Overcommit
7
8
# Manages execution of a child process, collecting the exit status and
@@ -91,6 +92,10 @@ def win32_prepare_args(args)
91
92
# @param process [String]
92
93
# @return [String]
93
94
def to_utf8 ( string )
95
+ # Our encoding code doesn't work on the GitHub Actions Windows
96
+ # environment for unknown reasons, so just skip it in CI.
97
+ return string if OS . windows? && ENV [ 'GITHUB_ACTIONS' ]
98
+
94
99
if Encoding . locale_charmap == 'UTF-8'
95
100
return string
96
101
end
Original file line number Diff line number Diff line change 215
215
end
216
216
217
217
it 'executes the command' do
218
- wait_until { subject . exited? } # Make sure process terminated before checking
218
+ wait_until ( timeout : 5 ) { subject . exited? } # Make sure process terminated before checking
219
219
File . exist? ( 'some-file' ) . should == true
220
220
end
221
221
end
You can’t perform that action at this time.
0 commit comments