Skip to content

Refactor and streamline GitHub Actions workflows #20

Refactor and streamline GitHub Actions workflows

Refactor and streamline GitHub Actions workflows #20

Workflow file for this run

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