Skip to content

Commit

Permalink
Add GitHub build action (#1640)
Browse files Browse the repository at this point in the history
  • Loading branch information
eNeRGy164 authored Aug 12, 2021
1 parent 9b77349 commit ff0f6a7
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 3 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Fluent Assertions - Pull Requests

on:
push:
branches: [ develop, release-6.0 ]
pull_request:
branches: [ develop, release-6.0 ]

jobs:
build:

runs-on: windows-latest

steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Setup .NET 5
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.x

- name: Setup .NET 3.1
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.1.x

- name: Setup .NET 2.1
uses: actions/setup-dotnet@v1
with:
dotnet-version: 2.1.x

- name: Install NUKE
run: |
dotnet tool install --global Nuke.GlobalTool
- name: Run NUKE
run: nuke

- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
path: ./Artifacts/*
2 changes: 1 addition & 1 deletion Build/Build.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class Build : NukeBuild
public static int Main() => Execute<Build>(x => x.Pack);

[Solution(GenerateProjects = true)] readonly Solution Solution;
[GitVersion] readonly GitVersion GitVersion;
[GitVersion(Framework = "net5.0")] readonly GitVersion GitVersion;
[PackageExecutable("nspec", "NSpecRunner.exe", Version = "3.1.0")] Tool NSpec3;

AbsolutePath ArtifactsDirectory => RootDirectory / "Artifacts";
Expand Down
4 changes: 2 additions & 2 deletions Build/_build.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
<NukeScriptDirectory>..\</NukeScriptDirectory>
</PropertyGroup>
<ItemGroup>
<PackageDownload Include="GitVersion.Tool" Version="[5.1.2]" />
<PackageDownload Include="GitVersion.Tool" Version="[5.6.11]" />
<PackageDownload Include="NSpec" Version="[3.1.0]" />
<PackageDownload Include="xunit.runner.console" Version="[2.4.1]" />
<PackageReference Include="Nuke.Common" Version="5.1.0" />
</ItemGroup>
</Project>
</Project>

0 comments on commit ff0f6a7

Please sign in to comment.