Merge pull request #519 from athityakumar/ci-on-windows

This commit is contained in:
Claudio Bley 2022-04-29 16:14:46 +02:00 committed by GitHub
commit c7aa167952
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 4 deletions

View file

@ -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

View file

@ -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'