Refactor and streamline GitHub Actions workflows #20
This file contains hidden or 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 Tests | |
| on: | |
| push: | |
| branches: [ main, master, development ] | |
| pull_request: | |
| branches: [ main, master, development ] | |
| concurrency: | |
| group: tests-${{ github.ref }}-${{ github.event_name }} | |
| cancel-in-progress: true | |
| jobs: | |
| test: | |
| name: Run Tests | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 20 | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Setup .NET environment | |
| uses: ./.github/actions/dotnet-setup | |
| - name: Restore dependencies | |
| run: dotnet restore OpenSSH_GUI.slnx | |
| - name: Build solution | |
| run: dotnet build OpenSSH_GUI.slnx --configuration Release --no-restore | |
| - name: Run tests | |
| run: dotnet test OpenSSH_GUI.slnx --configuration Release --no-build --verbosity normal |