mirror of
https://github.com/athityakumar/colorls.git
synced 2024-09-12 05:31:14 +02:00
Merge pull request #519 from athityakumar/ci-on-windows
This commit is contained in:
commit
c7aa167952
2 changed files with 7 additions and 4 deletions
4
.github/workflows/ruby.yml
vendored
4
.github/workflows/ruby.yml
vendored
|
@ -22,7 +22,7 @@ jobs:
|
|||
strategy:
|
||||
matrix:
|
||||
ruby-version: ['2.6', '2.7', '3.0', '3.1']
|
||||
os: [ubuntu-latest, macos-latest]
|
||||
os: [ubuntu-latest, macos-latest, windows-latest]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
@ -37,7 +37,7 @@ jobs:
|
|||
- name: Run tests
|
||||
run: bundle exec rake
|
||||
- name: Run checks
|
||||
run: test/run
|
||||
run: bash test/run
|
||||
|
||||
publish:
|
||||
needs: test
|
||||
|
|
|
@ -322,10 +322,13 @@ RSpec.describe ColorLS::Flags do
|
|||
end
|
||||
|
||||
context 'symlinked directory with trailing separator' do
|
||||
let(:args) { ['-x', File.join(FIXTURES, 'symlinks', 'Supportlink', File::SEPARATOR)] }
|
||||
link_to_dir = File.join(FIXTURES, 'symlinks', 'Supportlink', File::SEPARATOR)
|
||||
let(:args) { ['-x', link_to_dir] }
|
||||
|
||||
it 'shows the file in the linked directory' do
|
||||
if File.symlink? File.join(FIXTURES, 'symlinks', 'Supportlink')
|
||||
stat = File.lstat link_to_dir
|
||||
|
||||
if stat.directory?
|
||||
expect { subject }.to output(/yaml_sort_checker.rb/).to_stdout
|
||||
else
|
||||
skip 'symlinks not supported'
|
||||
|
|
Loading…
Reference in a new issue