Skip to content

Commit

Permalink
Run dotnet tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubsemerak committed Nov 22, 2023
1 parent 540a5b5 commit 4acef74
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 1 deletion.
32 changes: 32 additions & 0 deletions .github/workflows/dotnet-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# .github/workflows/dotnet-tests.yml
name: .NET Tests

on:
workflow_call:
inputs:
working-directory:
required: true
type: string

dotnet-version:
required: true
type: string

jobs:
dotnet-tests:
runs-on: "ubuntu-latest"
name: Run .NET tests
steps:
- uses: actions/checkout@v4
- name: Install .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: ${{ inputs.dotnet-version }}
- name: Install dependencies
working-directory: ${{ inputs.working-directory }}
run: |
dotnet restore
- name: Test with dotnet test
working-directory: ${{ inputs.working-directory }}
run: |
dotnet test
7 changes: 6 additions & 1 deletion .github/workflows/pull.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,9 @@ jobs:
- name: Test with pytest
working-directory: ${{ env.WORKING_DIRECTORY }}
run: |
pytest
pytest
dotnet-tests:
uses: ./dotnet-tests.yml
with:
working-directory: "dotnet/UneceGenerator"
dotnet-version: "8.0.100"
6 changes: 6 additions & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,9 @@ jobs:
working-directory: ${{ env.WORKING_DIRECTORY }}
run: |
pytest
dotnet-tests:
uses: ./dotnet-tests.yml
with:
working-directory: "dotnet/UneceGenerator"
dotnet-version: "8.0.100"

0 comments on commit 4acef74

Please sign in to comment.