Skip to content

Commit

Permalink
Merge pull request #32 from Atypical-Consulting/directory-build-props
Browse files Browse the repository at this point in the history
Create Directory.Build.props
  • Loading branch information
phmatray authored Mar 11, 2023
2 parents 557b3eb + 69a4736 commit 0b96ac6
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 45 deletions.
20 changes: 13 additions & 7 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This workflow will build a .NET project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net

name: .NET
name: Build and Test .NET Project

on:
push:
Expand All @@ -10,21 +10,27 @@ on:
branches: [ "main" ]

jobs:
build:
build-and-test:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Checkout Source Code
uses: actions/checkout@v3

- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
dotnet-version: 7.x

- name: Restore dependencies
run: dotnet restore
- name: Build

- name: Build Project
run: dotnet build --no-restore
- name: Test

- name: Run Unit Tests
run: dotnet test --no-build --verbosity normal --collect:"XPlat Code Coverage"
- name: Codecov

- name: Upload Code Coverage
uses: codecov/codecov-action@v3
18 changes: 18 additions & 0 deletions Directory.Build.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<Project>
<PropertyGroup>
<TargetFrameworks>net6.0;net7.0</TargetFrameworks>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<LangVersion>11</LangVersion>
<Company>Atypical Consulting SRL</Company>
</PropertyGroup>

<!-- Versioning -->
<!-- https://saebamini.com/how-to-version-your-net-nuget-packages-libraries-and-assemblies-azure-yaml-pipelines-example-using-net-core-cli/ -->
<PropertyGroup>
<Version>0.1.5</Version>
<AssemblyVersion>0.1.5</AssemblyVersion>
<FileVersion>0.1.5</FileVersion>
<InformationalVersion>0.1.5</InformationalVersion>
</PropertyGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -26,37 +26,29 @@

<!-- NuGet metadata -->
<PropertyGroup>
<PackageId>Atypical.VirtualFileSystem</PackageId>
<PackageIcon>Logo.png</PackageIcon>
<PackageLicenseFile>LICENSE</PackageLicenseFile>
<PackageReadmeFile>README.md</PackageReadmeFile>
<Authors>Philippe Matray</Authors>
<Description>
A virtual file system implementation in modern C#.
When writing applications in .NET, you often need to write or read the contents of a file. .NET provides `System.IO` namespace dedicated to this purpose. But how do we deal with the filesystem when testing our code?
"Virtual File System" is an attempt to solve this problem. Currently, this library is at an early stage of development. If you need additional functionality, I invite you to open an issue to discuss it.
</Description>
<PackageTags>virtual filesystem;testing;core;net7</PackageTags>
<Copyright>Copyright (c) 2022-2023 Atypical Consulting SRL</Copyright>
<PackageProjectUrl>https://github.com/Atypical-Consulting/VirtualFileSystem</PackageProjectUrl>
<RepositoryUrl>https://github.com/Atypical-Consulting/VirtualFileSystem.git</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<RepositoryBranch>main</RepositoryBranch>
<PackageReleaseNotes>
## Changes
- Add Directories and Files to IDirectoryNode.cs @phmatray (#28)
- Remove the dependency to Root in VFSIndex @phmatray (#27)
- Fix node creation in VFS.cs @phmatray (#26)
</PackageReleaseNotes>
</PropertyGroup>

<!-- Versioning -->
<!-- https://saebamini.com/how-to-version-your-net-nuget-packages-libraries-and-assemblies-azure-yaml-pipelines-example-using-net-core-cli/ -->
<PropertyGroup>
<Version>0.1.5</Version>
<AssemblyVersion>0.1.5</AssemblyVersion>
<FileVersion>0.1.5</FileVersion>
<InformationalVersion>0.1.5</InformationalVersion>
<PackageId>Atypical.VirtualFileSystem</PackageId>
<PackageIcon>Logo.png</PackageIcon>
<PackageLicenseFile>LICENSE</PackageLicenseFile>
<PackageReadmeFile>README.md</PackageReadmeFile>
<Authors>Philippe Matray</Authors>
<Description>
A virtual file system implementation in modern C#.
When writing applications in .NET, you often need to write or read the contents of a file. .NET provides `System.IO` namespace dedicated to this purpose. But how do we deal with the filesystem when testing our code?
"Virtual File System" is an attempt to solve this problem. Currently, this library is at an early stage of development. If you need additional functionality, I invite you to open an issue to discuss it.
</Description>
<PackageTags>virtual filesystem;testing;core;net7</PackageTags>
<Copyright>Copyright (c) 2022-2023 Atypical Consulting SRL</Copyright>
<PackageProjectUrl>https://github.com/Atypical-Consulting/VirtualFileSystem</PackageProjectUrl>
<RepositoryUrl>https://github.com/Atypical-Consulting/VirtualFileSystem.git</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<RepositoryBranch>main</RepositoryBranch>
<PackageReleaseNotes>
## Changes
- Bump Microsoft.NET.Test.Sdk from 17.4.1 to 17.5.0 @dependabot (#31)
- Bump FluentAssertions from 6.9.0 to 6.10.0 @dependabot (#30)
- Fix readme file on NuGet.org @phmatray (#29)
- Move commands and queries in separate files
</PackageReleaseNotes>
</PropertyGroup>

</Project>
Original file line number Diff line number Diff line change
@@ -1,14 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<LangVersion>11</LangVersion>
<Company>Atypical Consulting SRL</Company>

<IsPackable>false</IsPackable>

<RootNamespace>VirtualFileSystem.UnitTests</RootNamespace>
</PropertyGroup>

Expand Down

0 comments on commit 0b96ac6

Please sign in to comment.