diff --git a/.github/workflows/tests_workflow.yml b/.github/workflows/tests_workflow.yml index ea56980..d0db26c 100644 --- a/.github/workflows/tests_workflow.yml +++ b/.github/workflows/tests_workflow.yml @@ -2,16 +2,29 @@ name: .NET on: push: - + branches: + - "feature/*" + pull_request: + branches: + - develop + - master + jobs: - tests: - name: Run tests - runs-on: 'ubuntu-latest' + test: + runs-on: ubuntu-latest steps: - - uses: actions/checkout@master - - uses: actions/setup-dotnet@v1 - with: - dotnet-version: '6.0' - - run: | - dotnet restore ./Examples/Tests/Tests.csproj - dotnet test ./Examples/Tests/Tests.csproj --verbosity normal \ No newline at end of file + - uses: actions/checkout@v4 + - name: Setup .NET Core SDKs + uses: actions/setup-dotnet@v4 + with: + dotnet-version: | + 3.0.x + 3.1.x + 5.0.x + 6.0.x + 7.0.x + 8.0.x + 9.0.x + - run: dotnet --list-sdks + - run: dotnet restore ./Examples/Tests/Tests.csproj + - run: dotnet test ./Examples/Tests/Tests.csproj --verbosity normal