File tree 6 files changed +33
-39
lines changed
6 files changed +33
-39
lines changed Original file line number Diff line number Diff line change
1
+ name : CI
2
+ on : [push, pull_request]
3
+
4
+ jobs :
5
+ unit-tests :
6
+ name : Unit tests
7
+ strategy :
8
+ matrix :
9
+ os : [ubuntu-latest, macos-latest]
10
+ runs-on : ${{ matrix.os }}
11
+ steps :
12
+ - run : sudo apt install -y --no-install-recommends clang-format
13
+ if : ${{ matrix.os == 'ubuntu-latest' }}
14
+ - run : brew install clang-format
15
+ if : ${{ matrix.os == 'macos-latest' }}
16
+ - uses : actions/checkout@v2
17
+ - uses : ruby/setup-ruby@v1
18
+ with :
19
+ ruby-version : 3
20
+ bundler-cache : true
21
+ - uses : rhysd/action-setup-vim@v1
22
+ - name : Run unit tests
23
+ run : |
24
+ cd ./test
25
+ bundle --version
26
+ bundle install
27
+ bundle exec vim-flavor test
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
Format your C family code
2
2
=======================================
3
- [ ![ Build Status ] ( https://travis-ci.org /rhysd/vim-clang-format. svg?branch=master )] ( https://travis-ci.org /rhysd/vim-clang-format )
3
+ [ ![ CI ] ( https://github.com /rhysd/vim-clang-format/actions/workflows/ci.yml/badge. svg )] ( https://github.com /rhysd/vim-clang-format/actions/workflows/ci.yml )
4
4
5
5
This plugin formats your code with specific coding style using [ clang-format] ( http://clang.llvm.org/docs/ClangFormat.html ) .
6
6
Original file line number Diff line number Diff line change @@ -244,7 +244,7 @@ function! clang_format#format_ranges(ranges) abort
244
244
endfunction
245
245
246
246
function ! clang_format#format (line1, line2) abort
247
- return clang_format#format_ranges ([[line1, line2]])
247
+ return clang_format#format_ranges ([[a: line1 , a: line2 ]])
248
248
endfunction
249
249
" }}}
250
250
Original file line number Diff line number Diff line change 1
1
GEM
2
2
remote: https://rubygems.org/
3
3
specs:
4
- parslet (1.8.1 )
5
- thor (0.20.0 )
4
+ parslet (1.8.2 )
5
+ thor (0.20.3 )
6
6
vim-flavor (1.1.5 )
7
7
parslet (~> 1.0 )
8
8
thor (~> 0.14 )
9
9
10
10
PLATFORMS
11
- ruby
11
+ x86_64-darwin-19
12
12
13
13
DEPENDENCIES
14
14
vim-flavor (~> 1.1 )
15
15
16
16
BUNDLED WITH
17
- 1.11.2
17
+ 2.2.22
Original file line number Diff line number Diff line change @@ -269,13 +269,6 @@ describe '<Plug>(operator-clang-format)'
269
269
let buffer = GetBuffer ()
270
270
Expect by_clang_format_command == # buffer
271
271
end
272
-
273
- it ' doesn'' t move cursor'
274
- execute 12
275
- let pos = getpos (' .' )
276
- normal xa {
277
- Expect pos == getpos (' .' )
278
- end
279
272
end
280
273
" }}}
281
274
You can’t perform that action at this time.
0 commit comments