Update release.yml #32
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: unit and integration testing for dotnet package | |
on: | |
push: | |
branches: | |
- '**' | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup .NET 8.0 | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: 8.0 | |
- name: Display dotnet version | |
run: dotnet --version | |
- name: Install dependencies | |
working-directory: ./src | |
run: dotnet restore logzio-dotnet.sln | |
- name: Build package | |
working-directory: ./src | |
run: dotnet build logzio-dotnet.sln /p:Configuration=Release | |
- name: Run tests | |
working-directory: ./src | |
run: | | |
dotnet test ./UnitTests/UnitTests.csproj | |
dotnet test ./IntegrationTests/IntegrationTests.csproj |