Update dotnet version to 8.0 in github ci #333
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
name: Continuous Integration | |
on: | |
push: | |
jobs: | |
build-and-test-functional: | |
runs-on: ubuntu-latest | |
env: | |
working-directory: ./src/Codehard.Functional | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup .NET Core | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: 8.0.x | |
- name: Install dependencies | |
working-directory: ${{env.working-directory}} | |
run: dotnet restore | |
- name: Build | |
working-directory: ${{env.working-directory}} | |
run: dotnet build Codehard.Functional.sln --configuration Release --no-restore /p:ContinuousIntegrationBuild=true | |
- name: Unit Test | |
working-directory: ${{env.working-directory}} | |
run: dotnet test Codehard.Functional.sln --no-restore --verbosity normal | |
build-and-test-common: | |
runs-on: ubuntu-latest | |
env: | |
working-directory: ./src/Codehard.Common | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup .NET Core | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: 8.0.x | |
- name: Install dependencies | |
working-directory: ${{env.working-directory}} | |
run: dotnet restore | |
- name: Build | |
working-directory: ${{env.working-directory}} | |
run: dotnet build Codehard.Common.sln --configuration Release --no-restore /p:ContinuousIntegrationBuild=true | |
- name: Unit Test | |
working-directory: ${{env.working-directory}} | |
run: dotnet test Codehard.Common.sln --no-restore --verbosity normal | |
build-and-test-infra: | |
runs-on: ubuntu-latest | |
env: | |
working-directory: ./src/Codehard.Infrastructure | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup .NET Core | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: 8.0.x | |
- name: Install dependencies | |
working-directory: ${{env.working-directory}} | |
run: dotnet restore | |
- name: Build | |
working-directory: ${{env.working-directory}} | |
run: dotnet build Codehard.Infrastructure.sln --configuration Release --no-restore /p:ContinuousIntegrationBuild=true | |
- name: Unit Test | |
working-directory: ${{env.working-directory}} | |
run: dotnet test Codehard.Infrastructure.sln --no-restore --verbosity normal |