Skip to content

Commit

Permalink
fix: update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
the-avid-engineer committed Sep 5, 2023
1 parent 0ee6a5f commit efbaad7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/publish-beta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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: |
Expand All @@ -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
10 changes: 5 additions & 5 deletions .github/workflows/publish-stable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand All @@ -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
Expand All @@ -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: |
Expand Down

0 comments on commit efbaad7

Please sign in to comment.