Skip to content

Commit

Permalink
refactor: update gh actions workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
Guilherme Ferreira committed Dec 12, 2023
1 parent 415231d commit 8417a7f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,22 +39,22 @@ jobs:
echo "Branch name: $BRANCH_NAME"
echo "Repository name: $REPOSITORY_NAME"
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{github.event.pull_request.head.ref}}
repository: ${{github.event.pull_request.head.repo.full_name}}

- name: Setup .NET
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x

- name: Restore dependencies
run: dotnet restore src/KafkaFlow.Retry.sln
run: dotnet restore KafkaFlow.Retry.sln

- name: Build
run: dotnet build --no-restore -c Release src/KafkaFlow.Retry.sln
run: dotnet build --no-restore -c Release KafkaFlow.Retry.sln

- name: Start SqlServer
run: docker run -d -p 1433:1433 -e ACCEPT_EULA=${{ env.ACCEPT_EULA }} -e SA_PASSWORD=${{ env.SQLSERVER_SA_PASSWORD }} -e MSSQL_PID=Developer mcr.microsoft.com/mssql/server:2017-latest
Expand All @@ -78,4 +78,4 @@ jobs:
auto create topic: "true" # Optional, auto create kafka topic

- name: Test
run: dotnet test --no-build -c Release --verbosity normal --collect:"XPlat Code Coverage" --results-directory:"../../coverage-outputs" -m:1 src/KafkaFlow.Retry.sln
run: dotnet test --no-build -c Release --verbosity normal --collect:"XPlat Code Coverage" --results-directory:"../../coverage-outputs" -m:1 KafkaFlow.Retry.sln
6 changes: 3 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ jobs:
NUGET_SOURCE: https://api.nuget.org/v3/index.json

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Setup .NET
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@v3
with:
dotnet-version: 3.1.x
dotnet-version: 6.0.x

- name: Update project version
uses: roryprimrose/set-vs-sdk-project-version@v1
Expand Down

0 comments on commit 8417a7f

Please sign in to comment.