-
Notifications
You must be signed in to change notification settings - Fork 48
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
58501f4
commit 19271a2
Showing
9 changed files
with
16 additions
and
28 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 |
---|---|---|
@@ -1,5 +1,8 @@ | ||
on: | ||
workflow_call: | ||
defaults: | ||
run: | ||
shell: pwsh | ||
jobs: | ||
build: | ||
if: ${{ github.actor != 'dependabot[bot]' }} | ||
|
@@ -8,7 +11,6 @@ jobs: | |
- name: Check for secrets | ||
env: | ||
SECRETS_AVAILABLE: ${{ secrets.SECRETS_AVAILABLE }} | ||
shell: pwsh | ||
run: exit $(If ($env:SECRETS_AVAILABLE -eq 'true') { 0 } Else { 1 }) | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
|
@@ -19,7 +21,6 @@ jobs: | |
with: | ||
dotnet-version: 8.0.x | ||
- name: Download RavenDB Server | ||
shell: pwsh | ||
run: ./tools/download-ravendb-server.ps1 | ||
- name: Build | ||
run: dotnet build src --configuration Release -graph --property:WindowsSelfContained=true | ||
|
@@ -47,7 +48,6 @@ jobs: | |
assets\Particular.ServiceControl.exe | ||
- name: Rename ServiceControl Management EXE | ||
run: Rename-Item -Path assets\Particular.ServiceControl.exe -NewName "Particular.ServiceControl-${{ env.MinVerVersion }}.exe" | ||
shell: pwsh | ||
- name: Sign PowerShell module | ||
run: | | ||
AzureSignTool sign ` | ||
|
@@ -80,7 +80,6 @@ jobs: | |
Remove-Item deploy\Particular.ServiceControl* -recurse | ||
dotnet clean src --configuration Release --property:WindowsSelfContained=true | ||
dotnet build src\Particular.PlatformSample.ServiceControl\Particular.PlatformSample.ServiceControl.csproj --configuration Release -graph | ||
shell: pwsh | ||
- name: Sign NuGet packages | ||
uses: Particular/[email protected] | ||
with: | ||
|
@@ -95,7 +94,6 @@ jobs: | |
path: nugets/* | ||
retention-days: 1 | ||
- name : Verify release artifact counts | ||
shell: pwsh | ||
run: | | ||
$assetsCount = (Get-ChildItem -Recurse -File assets).Count | ||
$nugetsCount = (Get-ChildItem -Recurse -File nugets).Count | ||
|
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 |
---|---|---|
|
@@ -8,6 +8,9 @@ on: | |
workflow_dispatch: | ||
env: | ||
DOTNET_NOLOGO: true | ||
defaults: | ||
run: | ||
shell: pwsh | ||
jobs: | ||
build: | ||
name: ${{ matrix.os-name }}-${{ matrix.test-category }} | ||
|
@@ -29,7 +32,6 @@ jobs: | |
- name: Check for secrets | ||
env: | ||
SECRETS_AVAILABLE: ${{ secrets.SECRETS_AVAILABLE }} | ||
shell: pwsh | ||
run: exit $(If ($env:SECRETS_AVAILABLE -eq 'true') { 0 } Else { 1 }) | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
|
@@ -40,12 +42,10 @@ jobs: | |
with: | ||
dotnet-version: 8.0.x | ||
- name: Download RavenDB Server | ||
shell: pwsh | ||
run: ./tools/download-ravendb-server.ps1 | ||
- name: Build | ||
run: dotnet build src --configuration Release -graph | ||
- name: Zip PowerShell module | ||
shell: pwsh | ||
run: | | ||
New-Item assets\PowerShellModules -ItemType Directory | ||
Compress-Archive -Path deploy\PowerShellModules\Particular.ServiceControl.Management\* -DestinationPath assets\PowerShellModules\Particular.ServiceControl.Management.zip | ||
|
@@ -61,7 +61,6 @@ jobs: | |
retention-days: 1 | ||
- name: Smoke test PowerShell module import | ||
if: matrix.os-name == 'Windows' | ||
shell: pwsh | ||
run: Import-Module ./deploy/PowerShellModules/Particular.ServiceControl.Management | ||
- name: Azure login | ||
uses: azure/[email protected] | ||
|
@@ -77,11 +76,11 @@ jobs: | |
- name: Setup PostgreSQL | ||
uses: Particular/[email protected] | ||
if: matrix.test-category == 'PostgreSQL' | ||
with: | ||
with: | ||
connection-string-name: ServiceControl_TransportTests_PostgreSQL_ConnectionString | ||
tag: ServiceControl | ||
registry-username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
registry-password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
registry-password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
- name: Setup RabbitMQ | ||
uses: Particular/[email protected] | ||
if: matrix.test-category == 'RabbitMQ' | ||
|
@@ -106,7 +105,6 @@ jobs: | |
tag: ServiceControl | ||
- name: Setup SQS environment variables | ||
if: matrix.test-category == 'SQS' | ||
shell: pwsh | ||
run: | | ||
echo "AWS_REGION=${{ secrets.AWS_REGION }}" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf-8 -Append | ||
echo "AWS_ACCESS_KEY_ID=${{ secrets.AWS_ACCESS_KEY_ID }}" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf-8 -Append | ||
|
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
This file was deleted.
Oops, something went wrong.
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