-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
527 changed files
with
19,041 additions
and
18,189 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
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 |
---|---|---|
|
@@ -9,7 +9,7 @@ on: | |
|
||
jobs: | ||
build-windows: | ||
runs-on: windows-2019 | ||
runs-on: windows-2022 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
|
@@ -34,7 +34,7 @@ jobs: | |
- uses: actions/cache@v2 | ||
id: cache | ||
with: | ||
path: ~/.nuget/packages | ||
path: packages | ||
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }} | ||
restore-keys: | | ||
${{ runner.os }}-nuget- | ||
|
@@ -43,10 +43,15 @@ jobs: | |
#if: steps.cache.outputs.cache-hit != 'true' | ||
run: | | ||
nuget restore Snittlistan.sln | ||
Get-ChildItem -Recurse C:\Users\runneradmin\.nuget | ||
- name: Build | ||
run: msbuild build.build -t:All -p:Version=$env:BUILD_VERSION -p:WIX_PATH=$env:wix -p:NUnitConsoleRunnerPath=C:\Users\runneradmin\.nuget\packages\nunit.consolerunner\3.12.0\ | ||
run: msbuild build.build -t:All -p:Version=$env:BUILD_VERSION -p:WIX_PATH=$env:wix -p:NUnitConsoleRunnerPath=packages\nunit.consolerunner\3.12.0\ | ||
|
||
- name: Upload a Build Artifact | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: 'Test Result' | ||
path: Build\_build\TestResult.html | ||
|
||
- name: Push tag | ||
id: tag | ||
|
@@ -55,6 +60,18 @@ jobs: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
tag: ${{ env.BUILD_VERSION }} | ||
|
||
- name: Comment pull request | ||
uses: actions/[email protected] | ||
if: github.event_name == 'pull_request' | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
script: | | ||
const fs = require('fs'); | ||
const filename = "Build/_build/TestResult.html"; | ||
const contents = fs.readFileSync(filename, "utf8"); | ||
const { issue: { number: issue_number }, repo: { owner, repo } } = context; | ||
github.issues.createComment({ issue_number, owner, repo, body: contents }); | ||
- name: Create release | ||
id: create_release | ||
uses: actions/create-release@v1 | ||
|
@@ -64,7 +81,7 @@ jobs: | |
tag_name: ${{ steps.tag.outputs.new_tag }} | ||
release_name: Release v${{ steps.tag.outputs.new_tag }} | ||
draft: false | ||
prerelease: false | ||
prerelease: ${{ github.event_name == 'pull_request' }} | ||
|
||
- name: Upload artifact | ||
id: upload-artifact | ||
|
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,7 @@ | ||
#pragma warning disable IDE0005 // Using directive is unnecessary. | ||
|
||
global using System; | ||
global using System.Collections.Generic; | ||
global using System.Linq; | ||
global using System.Threading; | ||
global using System.Threading.Tasks; |
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,10 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<configuration> | ||
<config> | ||
<add key="repositoryPath" value="./packages" /> | ||
<add key="globalPackagesFolder" value="./packages" /> | ||
</config> | ||
<settings> | ||
<repositoryPath>./packages</repositoryPath> | ||
</settings> | ||
</configuration> |
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 |
---|---|---|
@@ -1,29 +1,22 @@ | ||
#nullable enable | ||
using System.Configuration; | ||
using Snittlistan.Queue.Config; | ||
|
||
namespace Snittlistan.Queue.ConsoleHost | ||
{ | ||
using System; | ||
using System.Configuration; | ||
using Npgsql.Logging; | ||
using Snittlistan.Queue.Config; | ||
using Snittlistan.Queue.Infrastructure; | ||
#nullable enable | ||
|
||
public class Program | ||
namespace Snittlistan.Queue.ConsoleHost; | ||
public class Program | ||
{ | ||
public static void Main() | ||
{ | ||
public static void Main() | ||
{ | ||
Console.WriteLine("Press [ENTER] to start."); | ||
_ = Console.ReadLine(); | ||
NpgsqlLogManager.Provider = new NLogLoggingProvider(); | ||
NpgsqlLogManager.IsParameterLoggingEnabled = true; | ||
Application application = new( | ||
(MessagingConfigSection)ConfigurationManager.GetSection("messaging"), | ||
ConfigurationManager.AppSettings["UrlScheme"], | ||
Convert.ToInt32(ConfigurationManager.AppSettings["Port"])); | ||
application.Start(); | ||
Console.WriteLine("Press [ENTER] to stop."); | ||
_ = Console.ReadLine(); | ||
application.Stop(); | ||
} | ||
Console.WriteLine("Press [ENTER] to start."); | ||
_ = Console.ReadLine(); | ||
Application application = new( | ||
(MessagingConfigSection)ConfigurationManager.GetSection("messaging"), | ||
ConfigurationManager.AppSettings["UrlScheme"], | ||
Convert.ToInt32(ConfigurationManager.AppSettings["Port"])); | ||
application.Start(); | ||
Console.WriteLine("Press [ENTER] to stop."); | ||
_ = Console.ReadLine(); | ||
application.Stop(); | ||
} | ||
} |
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
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,5 @@ | ||
global using System; | ||
global using System.Collections.Generic; | ||
global using System.Linq; | ||
global using System.Threading; | ||
global using System.Threading.Tasks; |
Oops, something went wrong.