diff --git a/.github/workflows/ruby.yml b/.github/workflows/ruby.yml index ab63ece5..1fd4994f 100644 --- a/.github/workflows/ruby.yml +++ b/.github/workflows/ruby.yml @@ -46,5 +46,16 @@ jobs: - name: Install dependencies run: bundle install + - name: Grant delete permissions on Windows + #if: matrix.os == 'windows-latest' + #run: icacls D:\a\_temp /grant Everyone:F /T + # run: | + # $path = "D:/a/_temp" + # $acl = Get-Acl $path + # $permission = "Everyone", "FullControl", "ContainerInherit, ObjectInherit", "None", "Allow" + # $accessRule = New-Object System.Security.AccessControl.FileSystemAccessRule $permission + # $acl.SetAccessRule($accessRule) + # Set-Acl $path $acl + - name: Run tests run: bundle exec rake diff --git a/spec/dsu/crud/json_file_spec.rb b/spec/dsu/crud/json_file_spec.rb index 95d8c104..54f3b114 100644 --- a/spec/dsu/crud/json_file_spec.rb +++ b/spec/dsu/crud/json_file_spec.rb @@ -20,7 +20,8 @@ def to_h end before do - File.delete(temp_file) + FileUtils.chmod(0o644, temp_file.path) + File.delete(temp_file.path) end let(:input_file) { 'spec/fixtures/files/json_file.json' }