-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modernize build system to use GitHub Actions (#20)
- Loading branch information
Showing
26 changed files
with
362 additions
and
860 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
version: 2 | ||
|
||
updates: | ||
- package-ecosystem: github-actions | ||
directory: "/" | ||
schedule: | ||
interval: daily | ||
time: "11:00" | ||
|
||
- package-ecosystem: nuget | ||
directory: "/" | ||
schedule: | ||
interval: daily | ||
time: "11:00" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
name: pr_validation | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- dev | ||
- main | ||
pull_request: | ||
branches: | ||
- master | ||
- dev | ||
- main | ||
|
||
jobs: | ||
test: | ||
name: Test-${{matrix.os}} | ||
runs-on: ${{matrix.os}} | ||
|
||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, windows-latest] | ||
|
||
steps: | ||
- name: "Checkout" | ||
uses: actions/[email protected] | ||
with: | ||
lfs: true | ||
fetch-depth: 0 | ||
|
||
- name: "Install .NET SDK" | ||
uses: actions/[email protected] | ||
with: | ||
global-json-file: "./global.json" | ||
|
||
- name: "Update release notes" | ||
shell: pwsh | ||
run: | | ||
./build.ps1 | ||
- name: "dotnet build" | ||
run: dotnet build -c Release | ||
|
||
# .NET Framework tests can't run reliably on Linux, so we only do .NET 8 | ||
|
||
- name: "dotnet test" | ||
shell: bash | ||
run: | | ||
if [ "${{ matrix.os }}" = "ubuntu-latest" ]; then | ||
dotnet test -c Release --framework net8.0 | ||
else | ||
dotnet test -c Release | ||
fi | ||
- name: "dotnet pack" | ||
run: dotnet pack -c Release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
name: Publish NuGet | ||
|
||
on: | ||
push: | ||
tags: | ||
- '*' | ||
|
||
jobs: | ||
publish-nuget: | ||
|
||
name: publish-nuget | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest] | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Setup .NET Core | ||
uses: actions/setup-dotnet@v4 | ||
with: | ||
dotnet-version: ${{ env.DOTNET_VERSION }} | ||
|
||
- name: "Update release notes" | ||
shell: pwsh | ||
run: | | ||
./build.ps1 | ||
- name: Create Packages | ||
run: dotnet pack /p:PackageVersion=${{ github.ref_name }} -c Release -o ./output | ||
|
||
- name: Push Packages | ||
run: dotnet nuget push "output/*.nupkg" -k ${{ secrets.NUGET_KEY }} -s https://api.nuget.org/v3/index.json | ||
|
||
- name: release | ||
uses: actions/create-release@v1 | ||
id: create_release | ||
with: | ||
draft: false | ||
prerelease: false | ||
release_name: 'Akka.Persistence.EventStore ${{ github.ref_name }}' | ||
tag_name: ${{ github.ref }} | ||
body_path: RELEASE_NOTES.md | ||
env: | ||
GITHUB_TOKEN: ${{ github.token }} | ||
|
||
- name: Upload Release Asset | ||
uses: AButler/[email protected] | ||
with: | ||
repo-token: ${{ github.token }} | ||
release-tag: ${{ github.ref_name }} | ||
files: 'output/*.nupkg' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<Project> | ||
<PropertyGroup> | ||
<Copyright>Copyright © 2013-2024 Akka.NET Project</Copyright> | ||
<NoWarn>$(NoWarn);CS1591;NU1701;CA1707;</NoWarn> | ||
<VersionPrefix>1.4.0</VersionPrefix> | ||
<Authors>Akka.NET Team</Authors> | ||
<PackageProjectUrl>https://github.com/akkadotnet/Akka.Persistence.EventStore</PackageProjectUrl> | ||
<PackageReleaseNotes>Serialization changes to match 1.4 API | ||
Upgrade to Akka 1.4 dependency | ||
Upgrade to EventStore 5 dependency | ||
netstandard2 and netfx452 (from netstandard1.6 and netfx45) | ||
|
||
**Breaking Changes** | ||
EventAdapter interface change (see README)</PackageReleaseNotes> | ||
<PackageReadmeFile>README.md</PackageReadmeFile> | ||
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression> | ||
<PackageIcon>logo.png</PackageIcon> | ||
</PropertyGroup> | ||
<PropertyGroup> | ||
<NetLibraryVersion>netstandard2.0</NetLibraryVersion> | ||
<NetFrameworkVersion>net452</NetFrameworkVersion> | ||
</PropertyGroup> | ||
<PropertyGroup Label="Build"> | ||
<LangVersion>latest</LangVersion> | ||
<ImplicitUsings>enable</ImplicitUsings> | ||
<Nullable>enable</Nullable> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<None Include="$(MSBuildThisFileDirectory)\logo.png" Pack="true" Visible="false" PackagePath="\" /> | ||
<None Include="$(MSBuildThisFileDirectory)\README.md" Pack="true" Visible="false" PackagePath="\" /> | ||
</ItemGroup> | ||
<PropertyGroup Condition=" '$(TargetFramework)' == '$(NetFrameworkVersion)' "> | ||
<DefineConstants>$(DefineConstants);SERIALIZATION</DefineConstants> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(TargetFramework)' == '$(NetLibraryVersion)' "> | ||
<DefineConstants>$(DefineConstants);CORECLR</DefineConstants> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)' == 'Release' "> | ||
<DefineConstants>$(DefineConstants);RELEASE</DefineConstants> | ||
</PropertyGroup> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<Project> | ||
<PropertyGroup> | ||
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally> | ||
<AkkaVersion>1.4.0-beta1</AkkaVersion> | ||
<NBenchVersion>1.2.2</NBenchVersion> | ||
<XunitVersion>2.4.1</XunitVersion> | ||
<TestSdkVersion>15.9.0</TestSdkVersion> | ||
</PropertyGroup> | ||
<!-- Akka.NET Package Versions --> | ||
<ItemGroup> | ||
<PackageVersion Include="Akka.Hosting" Version="1.5.6.1" /> | ||
<PackageVersion Include="NuGet.Frameworks" Version="6.9.1" /> | ||
<PackageVersion Include="Akka" Version="$(AkkaVersion)" /> | ||
<PackageVersion Include="Akka.Persistence" Version="$(AkkaVersion)" /> | ||
<PackageVersion Include="Akka.Persistence.Query" Version="$(AkkaVersion)" /> | ||
<PackageVersion Include="EventStore.Client" Version="[5.0.0,)" /> | ||
</ItemGroup> | ||
<!-- Testing Utilities --> | ||
<ItemGroup> | ||
<PackageVersion Include="Akka.Persistence.TCK" Version="$(AkkaVersion)" /> | ||
<PackageVersion Include="Microsoft.Extensions.Configuration.Json" Version="2.0.1" /> | ||
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.9.0" /> | ||
<PackageVersion Include="xunit" Version="2.7.0" /> | ||
<PackageVersion Include="xunit.runner.visualstudio" Version="2.5.7" /> | ||
<PackageVersion Include="FluentAssertions" Version="6.12.0" /> | ||
<PackageVersion Include="coverlet.collector" Version="6.0.2" /> | ||
<PackageVersion Include="Docker.DotNet" Version="3.125.12" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<GlobalPackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="all" /> | ||
</ItemGroup> | ||
</Project> |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.