File tree 4 files changed +51
-45
lines changed
4 files changed +51
-45
lines changed Original file line number Diff line number Diff line change
1
+ name : CI
2
+
3
+ on :
4
+ push :
5
+ branches : [master]
6
+ pull_request :
7
+ branches : [master]
8
+
9
+ jobs :
10
+ continuous_integration_build :
11
+ continue-on-error : true
12
+ strategy :
13
+ fail-fast : false
14
+ matrix :
15
+ ruby : [2.3, 2.7]
16
+ operating-system : [ubuntu-latest]
17
+ include :
18
+ - ruby : head
19
+ operating-system : ubuntu-latest
20
+ - ruby : truffleruby-head
21
+ operating-system : ubuntu-latest
22
+ - ruby : 2.7
23
+ operating-system : windows-latest
24
+ - ruby : jruby-head
25
+ operating-system : windows-latest
26
+
27
+ name : Ruby ${{ matrix.ruby }} on ${{ matrix.operating-system }}
28
+
29
+ runs-on : ${{ matrix.operating-system }}
30
+
31
+ steps :
32
+ - name : Checkout Code
33
+ uses : actions/checkout@v2
34
+
35
+ - name : Setup Ruby
36
+ uses : ruby/setup-ruby@v1
37
+ with :
38
+ ruby-version : ${{ matrix.ruby }}
39
+ bundler-cache : true # runs 'bundle install' and caches installed gems automatically
40
+
41
+ - name : Run Build
42
+ run : bundle exec rake
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ You can install Ruby/Git like this:
16
16
17
17
## Code Status
18
18
19
- * [ ![ Build Status] ( https://travis-ci.org /ruby-git/ruby-git.svg?branch=master )] ( https://travis-ci.org /ruby-git/ruby-git )
19
+ * [ ![ Build Status] ( https://github.com /ruby-git/ruby-git/workflows/CI/badge .svg?branch=master )] ( https://github.com /ruby-git/ruby-git/actions?query=workflow%3ACI )
20
20
* [ ![ Code Climate] ( https://codeclimate.com/github/ruby-git/ruby-git.png )] ( https://codeclimate.com/github/ruby-git/ruby-git )
21
21
* [ ![ Gem Version] ( https://badge.fury.io/rb/git.svg )] ( https://badge.fury.io/rb/git )
22
22
Original file line number Diff line number Diff line change 3
3
require File . dirname ( __FILE__ ) + '/../test_helper'
4
4
5
5
class TestGitPath < Test ::Unit ::TestCase
6
-
6
+
7
7
def setup
8
8
set_file_paths
9
9
@git = Git . open ( @wdir )
10
10
end
11
-
11
+
12
12
def test_initalize_with_good_path_and_check_path
13
13
path = Git ::Path . new ( @git . index . to_s , true )
14
14
assert_equal @git . index . to_s , path . to_s
15
15
end
16
-
16
+
17
17
def test_initialize_with_bad_path_and_check_path
18
18
assert_raises ArgumentError do
19
19
Git ::Path . new ( '/this path does not exist' , true )
20
20
end
21
21
end
22
-
22
+
23
23
def test_initialize_with_bad_path_and_no_check
24
24
path = Git ::Path . new ( '/this path does not exist' , false )
25
25
assert path . to_s . end_with? ( '/this path does not exist' )
26
26
27
- assert ( path . to_s . match ( /^C?:? \ / this path does not exist$/ ) )
27
+ assert ( path . to_s . match ( %r{^(?:[A-Z]:)? /this path does not exist$} )
28
28
end
29
29
30
30
def test_readables
31
31
assert ( @git . dir . readable? )
32
32
assert ( @git . index . readable? )
33
33
assert ( @git . repo . readable? )
34
34
end
35
-
35
+
36
36
def test_readables_in_temp_dir
37
37
in_temp_dir do |dir |
38
38
FileUtils . cp_r ( @wdir , 'test' )
39
39
g = Git . open ( File . join ( dir , 'test' ) )
40
-
40
+
41
41
assert ( g . dir . writable? )
42
42
assert ( g . index . writable? )
43
43
assert ( g . repo . writable? )
44
44
end
45
45
end
46
-
46
+
47
47
end
You can’t perform that action at this time.
0 commit comments