-
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.
Fix remaining actions to use repo owner DynamicsValue/fake-xrm-easy#120
- Loading branch information
1 parent
3e6ce55
commit d1e0859
Showing
3 changed files
with
36 additions
and
21 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 |
---|---|---|
|
@@ -38,7 +38,7 @@ jobs: | |
- name: Build | ||
run: pwsh ./build.ps1 | ||
env: | ||
NUGET_USERNAME: DynamicsValue | ||
NUGET_USERNAME: ${{github.repository_owner}} | ||
NUGET_TOKEN: ${{ secrets.PACKAGES_TOKEN }} | ||
|
||
build-windows: | ||
|
@@ -66,7 +66,7 @@ jobs: | |
- name: Build | ||
run: pwsh ./build.ps1 -configuration ${{matrix.configuration}} -targetFrameworks 'all' | ||
env: | ||
NUGET_USERNAME: DynamicsValue | ||
NUGET_USERNAME: ${{github.repository_owner}} | ||
NUGET_TOKEN: ${{ secrets.PACKAGES_TOKEN }} | ||
|
||
sonar: | ||
|
@@ -87,14 +87,19 @@ jobs: | |
- name: Enable GitHub packages feed | ||
run: dotnet nuget enable source github | ||
|
||
- id: lower-repo-owner | ||
shell: pwsh | ||
run: | | ||
"::set-output name=repo_owner::$($env:GITHUB_REPOSITORY_OWNER.ToLowerInvariant())" | ||
- name: Quality Gate | ||
uses: DynamicsValue/[email protected] | ||
with: | ||
buildCommand: dotnet build . --configuration 'FAKE_XRM_EASY_9' --framework netcoreapp3.1 | ||
testCommand: dotnet test . --configuration 'FAKE_XRM_EASY_9' --framework netcoreapp3.1 --verbosity normal --collect:"XPlat code coverage" --settings tests/.runsettings --results-directory ./coverage | ||
projectKey: ${{ secrets.SONAR_PROJECT_KEY }} | ||
projectName: fake-xrm-easy-abstractions | ||
sonarOrganisation: dynamicsvalue | ||
sonarOrganisation: ${{ steps.lower-repo-owner.outputs.repo_owner }} | ||
beginArguments: > | ||
/d:sonar.verbose="true" | ||
/d:sonar.qualitygate.wait="true" | ||
|
@@ -103,7 +108,7 @@ jobs: | |
env: | ||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
NUGET_USERNAME: DynamicsValue | ||
NUGET_USERNAME: ${{github.repository_owner}} | ||
NUGET_TOKEN: ${{ secrets.PACKAGES_TOKEN }} | ||
|
||
pack-push: | ||
|
@@ -127,32 +132,32 @@ jobs: | |
- name: Build | ||
run: pwsh ./build.ps1 -targetFrameworks 'all' | ||
env: | ||
NUGET_USERNAME: DynamicsValue | ||
NUGET_USERNAME: ${{github.repository_owner}} | ||
NUGET_TOKEN: ${{ secrets.PACKAGES_TOKEN }} | ||
|
||
- name: Pack Src | ||
run: pwsh ./pack-src.ps1 -targetFrameworks 'all' -versionSuffix "zci.${{ github.head_ref }}${{ github.run_number }}" | ||
env: | ||
NUGET_USERNAME: DynamicsValue | ||
NUGET_USERNAME: ${{github.repository_owner}} | ||
NUGET_TOKEN: ${{ secrets.PACKAGES_TOKEN }} | ||
|
||
- name: Push Src | ||
run: nuget.exe push .\nupkgs\FakeXrmEasy.Abstractions.*.nupkg -Source ${{ env.source-url }} | ||
env: | ||
NUGET_USERNAME: DynamicsValue | ||
NUGET_USERNAME: ${{github.repository_owner}} | ||
NUGET_AUTH_TOKEN: ${{ github.token }} | ||
NUGET_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Pack Tests | ||
run: pwsh ./pack-tests.ps1 -targetFrameworks 'all' -versionSuffix "zci.${{ github.head_ref }}${{ github.run_number }}" | ||
env: | ||
NUGET_USERNAME: DynamicsValue | ||
NUGET_USERNAME: ${{github.repository_owner}} | ||
NUGET_TOKEN: ${{ secrets.PACKAGES_TOKEN }} | ||
|
||
- name: Push Tests | ||
run: nuget.exe push .\nupkgs\FakeXrmEasy.AbstractionsTests.*.nupkg -Source ${{ env.source-url }} | ||
env: | ||
NUGET_USERNAME: DynamicsValue | ||
NUGET_USERNAME: ${{github.repository_owner}} | ||
NUGET_AUTH_TOKEN: ${{ github.token }} | ||
NUGET_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
|
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 |
---|---|---|
|
@@ -38,7 +38,7 @@ jobs: | |
- name: Build | ||
run: pwsh ./build.ps1 | ||
env: | ||
NUGET_USERNAME: DynamicsValue | ||
NUGET_USERNAME: ${{github.repository_owner}} | ||
NUGET_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
build-net-framework: | ||
|
@@ -66,7 +66,7 @@ jobs: | |
- name: Build | ||
run: pwsh ./build.ps1 -configuration ${{matrix.configuration}} -targetFrameworks 'all' | ||
env: | ||
NUGET_USERNAME: DynamicsValue | ||
NUGET_USERNAME: ${{github.repository_owner}} | ||
NUGET_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
sonar: | ||
|
@@ -87,14 +87,19 @@ jobs: | |
- name: Enable GitHub packages feed | ||
run: dotnet nuget enable source github | ||
|
||
- id: lower-repo-owner | ||
shell: pwsh | ||
run: | | ||
"::set-output name=repo_owner::$($env:GITHUB_REPOSITORY_OWNER.ToLowerInvariant())" | ||
- name: Quality Gate | ||
uses: DynamicsValue/[email protected] | ||
with: | ||
buildCommand: dotnet build . --configuration Debug --framework netcoreapp3.1 | ||
testCommand: dotnet test . --configuration Debug --framework netcoreapp3.1 --verbosity normal --collect:"XPlat code coverage" --settings tests/.runsettings --results-directory ./coverage | ||
projectKey: ${{ secrets.SONAR_PROJECT_KEY }} | ||
projectName: fake-xrm-easy-abstractions | ||
sonarOrganisation: dynamicsvalue | ||
sonarOrganisation: ${{ steps.lower-repo-owner.outputs.repo_owner }} | ||
beginArguments: > | ||
/d:sonar.verbose="true" | ||
/d:sonar.qualitygate.wait="true" | ||
|
@@ -103,7 +108,7 @@ jobs: | |
env: | ||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
NUGET_USERNAME: DynamicsValue | ||
NUGET_USERNAME: ${{github.repository_owner}} | ||
NUGET_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
|
||
|