Skip to content

Commit ddd613f

Browse files
committed
chore: main is the new master
1 parent 838c66a commit ddd613f

4 files changed

Lines changed: 21 additions & 21 deletions

File tree

.github/workflows/ci.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
name: Continuous Integration
22
on:
33
push:
4-
branches: [master]
4+
branches: [main]
55
pull_request:
6-
branches: [master]
6+
branches: [main]
77
jobs:
88
test:
99
name: Test
@@ -59,12 +59,16 @@ jobs:
5959
with:
6060
name: NuGet packages
6161
path: packages/*.*
62-
deploy:
62+
deploy:
6363
name: Deploy
64-
if: github.ref == 'refs/heads/master' && github.event_name == 'push'
64+
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
6565
needs: [pack]
6666
runs-on: ubuntu-latest
6767
steps:
68+
- name: Checkout sources
69+
uses: actions/checkout@v2
70+
with:
71+
fetch-depth: 0
6872
- uses: actions/download-artifact@v2
6973
with:
7074
name: NuGet packages

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ The base version represents the MAJOR and MINOR parts of [SemVer](https://semver
1010

1111
## Branches / tags
1212

13-
* `master` contains the latest sources. Each merge there triggers a deploy to `nuget.org`.
14-
* All versions on `nuget.org` have a matching GitHub release/tag.
13+
- `main` contains the latest sources. Each merge there triggers a deploy to `nuget.org`.
14+
- All versions on `nuget.org` have a matching GitHub release/tag.

README.md

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,14 @@
11
[![NuGet](https://img.shields.io/nuget/v/System.IO.Abstractions.svg)](https://www.nuget.org/packages/System.IO.Abstractions)
2-
[![Build status](https://ci.appveyor.com/api/projects/status/em172apw1v5k70vq/branch/master?svg=true)](https://ci.appveyor.com/project/tathamoddie/system-io-abstractions/branch/master) [![Dependabot Status](https://api.dependabot.com/badges/status?host=github&repo=System-IO-Abstractions/System.IO.Abstractions)](https://dependabot.com)
2+
![Continuous Integration](https://github.com/System-IO-Abstractions/System.IO.Abstractions/workflows/Continuous%20Integration/badge.svg)
3+
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/2e777fa545c94767acccd6345b1ed9b7)](https://app.codacy.com/gh/System-IO-Abstractions/System.IO.Abstractions?utm_source=github.com&utm_medium=referral&utm_content=System-IO-Abstractions/System.IO.Abstractions&utm_campaign=Badge_Grade_Dashboard)
4+
[![Renovate enabled](https://img.shields.io/badge/renovate-enabled-brightgreen.svg)](https://renovatebot.com/)
35

4-
---
5-
6-
Just like System.Web.Abstractions, but for System.IO. Yay for testable IO access!
7-
8-
NuGet only:
9-
10-
Install-Package System.IO.Abstractions
11-
12-
and/or:
13-
14-
Install-Package System.IO.Abstractions.TestingHelpers
6+
### Just like `System.Web.Abstractions`, but for `System.IO`. Yay for testable IO access!
157

168
At the core of the library is `IFileSystem` and `FileSystem`. Instead of calling methods like `File.ReadAllText` directly, use `IFileSystem.File.ReadAllText`. We have exactly the same API, except that ours is injectable and testable.
179

10+
dotnet add package System.IO.Abstractions
11+
1812
```csharp
1913
public class MyComponent
2014
{
@@ -26,7 +20,7 @@ public class MyComponent
2620
this.fileSystem = fileSystem;
2721
}
2822
/// <summary>Create MyComponent</summary>
29-
public MyComponent() : this(
23+
public MyComponent() : this(
3024
fileSystem: new FileSystem() //use default implementation which calls System.IO
3125
)
3226
{
@@ -46,6 +40,8 @@ public class MyComponent
4640

4741
The library also ships with a series of test helpers to save you from having to mock out every call, for basic scenarios. They are not a complete copy of a real-life file system, but they'll get you most of the way there.
4842

43+
dotnet add package System.IO.Abstractions.TestingHelpers
44+
4945
```csharp
5046
[Test]
5147
public void MyComponent_Validate_ShouldThrowNotSupportedExceptionIfTestingIsNotAwesome()
@@ -137,4 +133,4 @@ public class SomeClassUsingFileSystemWatcher
137133
}
138134
}
139135
}
140-
```
136+
```

version.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"assemblyVersion": {
55
"precision": "major"
66
},
7-
"publicReleaseRefSpec": ["^refs/heads/master$"],
7+
"publicReleaseRefSpec": ["^refs/heads/main$"],
88
"cloudBuild": {
99
"buildNumber": {
1010
"enabled": true

0 commit comments

Comments
 (0)