-
-
Notifications
You must be signed in to change notification settings - Fork 4
47 lines (39 loc) · 1.11 KB
/
Copy pathtest.yml
File metadata and controls
47 lines (39 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: Unit Tests
on:
workflow_call:
pull_request:
types:
- opened
- reopened
- synchronize
concurrency:
group: tests-${{ github.ref }}-${{ github.event_name }}
cancel-in-progress: true
jobs:
test:
name: ${{matrix.os}}-tests
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest, windows-latest, macOS-latest ]
timeout-minutes: 20
steps:
- name: Checkout repository
uses: actions/checkout@v7
with:
ref: ${{ github.ref }}
- name: Setup .NET environment
uses: actions/setup-dotnet@v5
with:
global-json-file: global.json
cache: true
cache-dependency-path: |
**/*.csproj
**/Directory.Packages.props
**/Directory.Build.props
- 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