Skip to content

Commit

Permalink
update dependencies and frameworks
Browse files Browse the repository at this point in the history
- use latest codeQL action version
- update nuget packages
- update to dotnet 7 SDK for build
- update github action versions
- add test report to CI build

Co-authored-by: Dirk Peters <[email protected]>
  • Loading branch information
Dirk-Peters-BF and Dirk-Peters authored Jan 27, 2023
1 parent 6006b4e commit c0bb1a3
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 18 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,27 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
dotnet-version: 7.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore
- name: Test
run: dotnet test --no-build --verbosity normal
run: dotnet test --no-build --verbosity normal --logger "trx;LogFileName=test-results.trx"
- name: Pack
run: dotnet pack --configuration Release -p:PackageVersion=${{ github.run_number }}-ci
- name: Add Nuget source
run: dotnet nuget add source https://nuget.pkg.github.com/bridgefield/index.json -n github -u bridgefield -p ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text
- name: Push
run: dotnet nuget push **/*.nupkg -s github
- name: Test Report
uses: dorny/test-reporter@v1
if: success() || failure()
with:
name: unit test results
path: '**/test-results.trx'
reporter: dotnet-trx
6 changes: 3 additions & 3 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
Expand All @@ -50,7 +50,7 @@ jobs:
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v1
uses: github/codeql-action/autobuild@v2

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl
Expand All @@ -64,4 +64,4 @@ jobs:
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
uses: github/codeql-action/analyze@v2
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
dotnet-version: 7.0.x
- name: Pack
run: |
arrTag=(${GITHUB_REF//\// })
Expand Down
8 changes: 4 additions & 4 deletions FoundationalBits.Spec/FoundationalBits.Spec.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
<IsPackable>false</IsPackable>
<OutputType>Library</OutputType>
<LangVersion>9</LangVersion>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net7.0</TargetFramework>
<PackageId>FoundationalBits.Spec</PackageId>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="FluentAssertions" Version="6.6.0" />
<PackageReference Include="FluentAssertions" Version="6.9.0" />
<PackageReference Include="NUnit" Version="3.13.3" />
<PackageReference Include="NUnit3TestAdapter" Version="4.2.1" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.2.0" />
<PackageReference Include="NUnit3TestAdapter" Version="4.3.1" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.4.1" />
</ItemGroup>

<ItemGroup>
Expand Down
4 changes: 2 additions & 2 deletions FoundationalBits/FoundationalBits.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="bridgefield.MonadicBits" Version="0.4.1" />
<PackageReference Include="System.Threading.Tasks.Dataflow" Version="6.0.0" />
<PackageReference Include="bridgefield.MonadicBits" Version="0.5.0" />
<PackageReference Include="System.Threading.Tasks.Dataflow" Version="7.0.0" />
</ItemGroup>
</Project>
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@ Useful bits for foundational groundwork in C# applications.
await counter.Tell(CounterCommand.Decrement);

...
//output: "0" regardless of ordering of previous calls
//output: "0" regardless of context switches, as long as pervious two calls are started before
Console.WriteLine(await counter.Tell(CounterCommand.Current));
```
- state less agent to ensure generalized sequential execution of actions
- Stateless agent to ensure generalized sequential execution of actions
triggered from different background tasks without explicit synchronization

## Contributors
Expand Down

0 comments on commit c0bb1a3

Please sign in to comment.