Skip to content

Commit

Permalink
ci: Update CI configuration to .NET 8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
oboukli committed Jun 12, 2024
1 parent fde1dda commit 98131e4
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 7 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ jobs:
env:
AKTABOOK_ENVIRONMENT: Test
AKTABOOK_INTEGRATION_TEST_ENVIRONMENT: Test
BUS_HOST_PID_FILE: src/Aktabook.Bus/bin/Release/net6.0/aktabook-bus.pid
BUS_BIN_DIR: src/Aktabook.Bus/bin/Release/net8.0/
BUS_HOST_PID_FILE: src/Aktabook.Bus/bin/Release/net8.0/aktabook-bus.pid
BUS_LOGS_DIR: src/Aktabook.Bus/bin/Release/net8.0/Logs/
RequesterServiceBus__RabbitMQConnectionOptions__HostName: localhost
RequesterServiceBus__RabbitMQConnectionOptions__Password: ${{ secrets.RABBITMQ_INTEGRATION_TEST_PASSWORD }}
RequesterServiceBus__RabbitMQConnectionOptions__PortNumber: 5672
Expand Down Expand Up @@ -240,7 +242,7 @@ jobs:
--background
coverage_session
./Aktabook.Bus
working-directory: src/Aktabook.Bus/bin/Release/net6.0/
working-directory: ${{ env.BUS_BIN_DIR }}

- name: Wait for bus readiness check
env:
Expand Down Expand Up @@ -339,15 +341,15 @@ jobs:
with:
if-no-files-found: error
name: bus-logs
path: src/Aktabook.Bus/bin/Release/net6.0/Logs
path: ${{ env.BUS_LOGS_DIR }}

- name: Upload public API logs
if: ${{ always() }}
uses: actions/upload-artifact@v4
with:
if-no-files-found: error
name: public-api-logs
path: src/Aktabook.Bus/bin/Release/net6.0/Logs
path: ${{ env.BUS_LOGS_DIR }}

unit_test:
name: Unit test
Expand Down
18 changes: 18 additions & 0 deletions .github/workflows/dotnet-security-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,15 @@ jobs:
with:
persist-credentials: false

- name: Set up .NET SDK
uses: actions/setup-dotnet@v4
with:
cache: true
cache-dependency-path: |-
src/**/packages.lock.json
test/**/packages.lock.json
global-json-file: global.json

- name: Install scanner
run: >-
dotnet tool install security-scan
Expand All @@ -64,6 +73,15 @@ jobs:
with:
persist-credentials: false

- name: Set up .NET SDK
uses: actions/setup-dotnet@v4
with:
cache: true
cache-dependency-path: |-
src/**/packages.lock.json
test/**/packages.lock.json
global-json-file: global.json

- name: Restores dependencies
env:
DOTNET_NUGET_SIGNATURE_VERIFICATION: true
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ jobs:
name: Publish for Ubuntu
runs-on: ubuntu-latest
env:
AKTABOOK_DOTNET_FRAMWORK: net6.0
AKTABOOK_DOTNET_RUNTIME_TARGET: ubuntu.22.04-x64
AKTABOOK_DOTNET_FRAMWORK: net8.0
AKTABOOK_DOTNET_RUNTIME_TARGET: linux-x64
AKTABOOK_PUBLISH_PATH_ROOT: ${{ github.workspace }}/publish
DOTNET_CLI_TELEMETRY_OPTOUT: true
DOTNET_NUGET_SIGNATURE_VERIFICATION: true
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/resharper-inspectcode.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,4 @@ jobs:
mono:
solution: ./Aktabook.sln
telemetry-optout: True
tool-version: "2024.1.0-rc01"
tool-version: "2024.1.3"

0 comments on commit 98131e4

Please sign in to comment.