-
Notifications
You must be signed in to change notification settings - Fork 3
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
0ee6a5f
commit efbaad7
Showing
2 changed files
with
12 additions
and
12 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 |
---|---|---|
|
@@ -24,9 +24,9 @@ jobs: | |
semantic_version_pattern='^(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)(-((0|[1-9][0-9]*|[0-9]*[a-zA-Z-][0-9a-zA-Z-]*)(\.(0|[1-9][0-9]*|[0-9]*[a-zA-Z-][0-9a-zA-Z-]*))*))?(\+([0-9a-zA-Z-]+(\.[0-9a-zA-Z-]+)*))?$' | ||
if [[ ${GITHUB_MILESTONE} =~ $semantic_version_pattern ]]; then | ||
echo ::set-output name=is_semantic_version::'true' | ||
echo "is_semantic_version=true" >> $GITHUB_OUTPUT | ||
else | ||
echo ::set-output name=is_semantic_version::'false' | ||
echo "is_semantic_version=false" >> $GITHUB_OUTPUT | ||
fi | ||
beta: | ||
needs: milestone | ||
|
@@ -38,17 +38,17 @@ jobs: | |
- name: Checkout Repository | ||
uses: actions/checkout@v3 | ||
- name: Install .NET SDK | ||
uses: actions/setup-dotnet@v2 | ||
uses: actions/setup-dotnet@v3 | ||
- name: Restore Dependencies | ||
run: dotnet restore EntityDb.sln --locked-mode | ||
- name: Run Project Tests | ||
run: dotnet test EntityDb.sln --no-restore -c Debug --collect:"XPlat Code Coverage" -r ./TestResults -- DataCollectionRunSettings.DataCollectors.DataCollector.Configuration.Format=opencover | ||
run: dotnet test EntityDb.sln --no-restore -c Debug --collect:"XPlat Code Coverage" --results-directory ./TestResults -- DataCollectionRunSettings.DataCollectors.DataCollector.Configuration.Format=opencover | ||
- name: Pack Projects into Nuget Packages | ||
run: dotnet pack EntityDb.sln --no-restore -c Release /p:Version='${{ needs.milestone.outputs.version }}-beta.${{ github.event.number }}.${{ github.run_number }}.${{ github.run_attempt }}' | ||
- name: Publish to Beta | ||
run: dotnet nuget push ./**/*.nupkg -s ${{ vars.NUGET_SOURCE }} -k ${{ secrets.NUGET_API_KEY }} | ||
- name: Packages & Symbols Artifact | ||
uses: actions/[email protected].0 | ||
uses: actions/[email protected].1 | ||
with: | ||
name: Packages & Symbols | ||
path: | | ||
|
@@ -60,15 +60,15 @@ jobs: | |
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }} | ||
coverage-reports: ./TestResults/**/*.xml | ||
- name: Generate Coverage Report | ||
uses: danielpalme/[email protected].9 | ||
uses: danielpalme/[email protected].12 | ||
with: | ||
reports: './TestResults/**/coverage.opencover.xml' | ||
targetdir: 'CoverageReport' | ||
reporttypes: 'HtmlInline' | ||
license: ${{ secrets.REPORTGENERATOR_LICENSE }} | ||
toolpath: 'reportgeneratortool' | ||
- name: Coverage Report Artifact | ||
uses: actions/[email protected].0 | ||
uses: actions/[email protected].1 | ||
with: | ||
name: CoverageReport | ||
path: CoverageReport |
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 |
---|---|---|
|
@@ -14,7 +14,7 @@ jobs: | |
version: ${{ steps.get_release.outputs.tag_name }} | ||
steps: | ||
- id: get_release | ||
uses: bruceadams/get-release@v1.2.3 | ||
uses: bruceadams/get-release@v1.3.2 | ||
env: | ||
GITHUB_TOKEN: ${{ github.token }} | ||
- id: parse | ||
|
@@ -31,9 +31,9 @@ jobs: | |
semantic_version_pattern='^(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)(-((0|[1-9][0-9]*|[0-9]*[a-zA-Z-][0-9a-zA-Z-]*)(\.(0|[1-9][0-9]*|[0-9]*[a-zA-Z-][0-9a-zA-Z-]*))*))?(\+([0-9a-zA-Z-]+(\.[0-9a-zA-Z-]+)*))?$' | ||
if [[ ${GITHUB_TAG} =~ $semantic_version_pattern ]]; then | ||
echo ::set-output name=is_semantic_version::'true' | ||
echo "is_semantic_version=true" >> $GITHUB_OUTPUT | ||
else | ||
echo ::set-output name=is_semantic_version::'false' | ||
echo "is_semantic_version=false" >> $GITHUB_OUTPUT | ||
fi | ||
stable: | ||
|
@@ -46,7 +46,7 @@ jobs: | |
- name: Checkout Repository | ||
uses: actions/checkout@v3 | ||
- name: Install .NET SDK | ||
uses: actions/setup-dotnet@v2 | ||
uses: actions/setup-dotnet@v3 | ||
- name: Restore Dependencies | ||
run: dotnet restore EntityDb.sln --locked-mode | ||
- name: Run Project Tests | ||
|
@@ -56,7 +56,7 @@ jobs: | |
- name: Publish to Stable | ||
run: dotnet nuget push ./**/*.nupkg -s ${{ vars.NUGET_SOURCE }} -k ${{ secrets.NUGET_API_KEY }} | ||
- name: Packages & Symbols Artifact | ||
uses: actions/[email protected].0 | ||
uses: actions/[email protected].1 | ||
with: | ||
name: Packages & Symbols | ||
path: | | ||
|