chore: update workflows to proper versions
This commit is contained in:
@@ -16,14 +16,14 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v7
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
token: ${{ secrets.ACTIONS_PAT }}
|
token: ${{ secrets.ACTIONS_PAT }}
|
||||||
- name: Setup .NET 9
|
- name: Setup .NET 10
|
||||||
uses: actions/setup-dotnet@v4
|
uses: actions/setup-dotnet@v5
|
||||||
with:
|
with:
|
||||||
dotnet-version: 9.x
|
dotnet-version: 10.x
|
||||||
- name: Install versionize
|
- name: Install versionize
|
||||||
run: dotnet tool install --global Versionize
|
run: dotnet tool install --global Versionize
|
||||||
- name: Setup git
|
- name: Setup git
|
||||||
@@ -36,7 +36,7 @@ jobs:
|
|||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
- name: Upload changelog
|
- name: Upload changelog
|
||||||
if: steps.versionize.outcome == 'success'
|
if: steps.versionize.outcome == 'success'
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v7
|
||||||
with:
|
with:
|
||||||
name: change-log
|
name: change-log
|
||||||
path: src/BGR.Console/CHANGELOG.md
|
path: src/BGR.Console/CHANGELOG.md
|
||||||
@@ -55,15 +55,15 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v7
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
ref: ${{ github.ref }}
|
ref: ${{ github.ref }}
|
||||||
token: ${{ secrets.ACTIONS_PAT }}
|
token: ${{ secrets.ACTIONS_PAT }}
|
||||||
- name: Setup .NET 9
|
- name: Setup .NET 10
|
||||||
uses: actions/setup-dotnet@v4
|
uses: actions/setup-dotnet@v5
|
||||||
with:
|
with:
|
||||||
dotnet-version: 9.x
|
dotnet-version: 10.x
|
||||||
- name: Build
|
- name: Build
|
||||||
run: dotnet build src
|
run: dotnet build src
|
||||||
- name: Publish for mac-os
|
- name: Publish for mac-os
|
||||||
@@ -84,12 +84,12 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
proj-path: src/BGR.Console/BGR.Console.csproj
|
proj-path: src/BGR.Console/BGR.Console.csproj
|
||||||
- name: Download changlog
|
- name: Download changlog
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v8
|
||||||
with:
|
with:
|
||||||
name: change-log
|
name: change-log
|
||||||
path: src/BGR.Console
|
path: src/BGR.Console
|
||||||
- name: Create release
|
- name: Create release
|
||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@v3
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.ACTIONS_PAT }}
|
token: ${{ secrets.ACTIONS_PAT }}
|
||||||
name: bgr v${{ steps.get-version.outputs.version }}
|
name: bgr v${{ steps.get-version.outputs.version }}
|
||||||
|
|||||||
@@ -18,14 +18,14 @@ jobs:
|
|||||||
contents: write
|
contents: write
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v7
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
token: ${{ secrets.ACTIONS_PAT }}
|
token: ${{ secrets.ACTIONS_PAT }}
|
||||||
- name: Setup .NET
|
- name: Setup .NET 10
|
||||||
uses: actions/setup-dotnet@v4
|
uses: actions/setup-dotnet@v5
|
||||||
with:
|
with:
|
||||||
dotnet-version: 9.x.x
|
dotnet-version: 10.x.x
|
||||||
- name: Format project
|
- name: Format project
|
||||||
run: dotnet format src --verbosity normal
|
run: dotnet format src --verbosity normal
|
||||||
- name: Commit Changes
|
- name: Commit Changes
|
||||||
@@ -49,14 +49,14 @@ jobs:
|
|||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v7
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
token: ${{ secrets.ACTIONS_PAT }}
|
token: ${{ secrets.ACTIONS_PAT }}
|
||||||
- name: Setup .NET 9
|
- name: Setup .NET 10
|
||||||
uses: actions/setup-dotnet@v4
|
uses: actions/setup-dotnet@v5
|
||||||
with:
|
with:
|
||||||
dotnet-version: 9.x
|
dotnet-version: 10.x
|
||||||
- name: Install report generator
|
- name: Install report generator
|
||||||
run: dotnet tool install --global dotnet-reportgenerator-globaltool
|
run: dotnet tool install --global dotnet-reportgenerator-globaltool
|
||||||
- name: Restore dependencies
|
- name: Restore dependencies
|
||||||
@@ -68,7 +68,7 @@ jobs:
|
|||||||
- name: Rename test coverage report
|
- name: Rename test coverage report
|
||||||
run: mv src/BGR.Console.Tests/TestResults/Coverage/coverage.cobertura.xml src/BGR.Console.Tests/TestResults/Coverage/${{ matrix.os }}-coverage.cobertura.xml
|
run: mv src/BGR.Console.Tests/TestResults/Coverage/coverage.cobertura.xml src/BGR.Console.Tests/TestResults/Coverage/${{ matrix.os }}-coverage.cobertura.xml
|
||||||
- name: Upload test coverage report for ${{ matrix.os }}
|
- name: Upload test coverage report for ${{ matrix.os }}
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v7
|
||||||
with:
|
with:
|
||||||
name: test-coverage-${{ matrix.os }}
|
name: test-coverage-${{ matrix.os }}
|
||||||
path: src/BGR.Console.Tests/TestResults/Coverage/${{ matrix.os }}-coverage.cobertura.xml
|
path: src/BGR.Console.Tests/TestResults/Coverage/${{ matrix.os }}-coverage.cobertura.xml
|
||||||
@@ -78,26 +78,26 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v7
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
token: ${{ secrets.ACTIONS_PAT }}
|
token: ${{ secrets.ACTIONS_PAT }}
|
||||||
- name: Download ubuntu-latest report
|
- name: Download ubuntu-latest report
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v8
|
||||||
with:
|
with:
|
||||||
name: test-coverage-ubuntu-latest
|
name: test-coverage-ubuntu-latest
|
||||||
path: ./coverage
|
path: ./coverage
|
||||||
- name: Download windows-latest report
|
- name: Download windows-latest report
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v8
|
||||||
with:
|
with:
|
||||||
name: test-coverage-windows-latest
|
name: test-coverage-windows-latest
|
||||||
path: ./coverage
|
path: ./coverage
|
||||||
- name: Download macos-latest report
|
- name: Download macos-latest report
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v8
|
||||||
with:
|
with:
|
||||||
name: test-coverage-macos-latest
|
name: test-coverage-macos-latest
|
||||||
path: ./coverage
|
path: ./coverage
|
||||||
- name: Upload test coverage reports
|
- name: Upload test coverage reports
|
||||||
uses: codecov/codecov-action@v4
|
uses: codecov/codecov-action@v7
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.CODECOV_TOKEN }}
|
token: ${{ secrets.CODECOV_TOKEN }}
|
||||||
|
|||||||
Reference in New Issue
Block a user