-
-
Notifications
You must be signed in to change notification settings - Fork 5
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
1 parent
918124b
commit 602a8fd
Showing
8 changed files
with
1,044 additions
and
1 deletion.
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 |
---|---|---|
|
@@ -59,6 +59,44 @@ jobs: | |
token: ${{ secrets.CODECOV_TOKEN }} | ||
fail_ci_if_error: true | ||
|
||
test-published: | ||
name: Test published applications | ||
strategy: | ||
matrix: | ||
include: | ||
- os: ubuntu-latest | ||
command: ./deployment/test-published.sh "Gnomeshade.WebApi.Tests.Integration.Sqlite" "linux-x64" "${{ github.run_number }}" | ||
- os: windows-latest | ||
command: ./deployment/test-published.ps1 "Gnomeshade.Desktop.Tests" "win-x64" "${{ github.run_number }}" | ||
runs-on: ${{ matrix.os }} | ||
timeout-minutes: 20 | ||
steps: | ||
- uses: actions/[email protected] | ||
- uses: actions/[email protected] | ||
- uses: actions/[email protected] | ||
with: | ||
node-version: 18 | ||
cache: 'npm' | ||
cache-dependency-path: 'source/Gnomeshade.WebApi/Node/package-lock.json' | ||
|
||
- name: Cache NuGet packages | ||
uses: actions/[email protected] | ||
with: | ||
path: ~/.nuget/packages | ||
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }} | ||
|
||
- name: Cache Docker images | ||
uses: ScribeMD/[email protected] | ||
with: | ||
key: docker-${{ runner.os }}-${{ hashFiles('**/WebserverSetup.cs') }} | ||
|
||
- run: ${{ matrix.command }} | ||
env: | ||
Admin__Password: ${{ secrets.DEMO_ADMIN_PASSWORD }} | ||
Nordigen__SecretId: ${{ secrets.NORDIGEN_SECRET_ID }} | ||
Nordigen__SecretKey: ${{ secrets.NORDIGEN_SECRET_KEY }} | ||
Serilog__MinimumLevel: Warning | ||
|
||
build-deb: | ||
name: Build debian package | ||
runs-on: ubuntu-20.04 | ||
|
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,36 @@ | ||
param ( | ||
[Parameter(Mandatory = $true, Position = 0)] | ||
[System.String] | ||
$Project, | ||
[Parameter(Mandatory = $true, Position = 1)] | ||
[System.String] | ||
$Runtime, | ||
[Parameter(Mandatory = $true, Position = 2)] | ||
[System.Int32] | ||
$RunNumber, | ||
[Parameter(Position = 3)] | ||
[System.String] | ||
$Tag | ||
) | ||
|
||
$version = Get-Content version | ||
|
||
$dotnetArgs = @() | ||
$dotnetArgs = $dotnetArgs + "publish" | ||
$dotnetArgs = $dotnetArgs + ".\tests\$Project\$Project.csproj" | ||
$dotnetArgs = $dotnetArgs + "--runtime" + $Runtime | ||
$dotnetArgs = $dotnetArgs + "--configuration" + "Release" | ||
$dotnetArgs = $dotnetArgs + "--self-contained" | ||
$dotnetArgs = $dotnetArgs + "-p:AssemblyVersion=$version.$RunNumber" | ||
$dotnetArgs = $dotnetArgs + "-p:InformationalVersion=$version$Tag+$Runtime" | ||
$dotnetArgs = $dotnetArgs + "-p:PublishSingleFile=false" | ||
$dotnetArgs = $dotnetArgs + "/warnAsError" | ||
$dotnetArgs = $dotnetArgs + "/nologo" | ||
|
||
& dotnet $dotnetArgs | ||
|
||
$testArgs = @() | ||
$testArgs = $testArgs + "test" | ||
$testArgs = $testArgs + ".\tests\$Project\bin\Release\net8.0\$Runtime\$Project.dll" | ||
|
||
& dotnet $testArgs |
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,20 @@ | ||
#!/bin/sh | ||
set -e | ||
|
||
version=$(tr -d '[:space:]' <version) | ||
|
||
./deployment/restore.sh | ||
|
||
dotnet publish \ | ||
./tests/"$1"/"$1".csproj \ | ||
--runtime "$2" \ | ||
--configuration Release \ | ||
--self-contained \ | ||
--no-restore \ | ||
-p:AssemblyVersion="$version.$3" \ | ||
-p:InformationalVersion="$version$4$2" \ | ||
-p:PublishSingleFile=false \ | ||
/warnAsError \ | ||
/nologo | ||
|
||
dotnet test ./tests/"$1"/bin/Release/net8.0/"$2"/publish/"$1".dll |
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
Oops, something went wrong.