-
Notifications
You must be signed in to change notification settings - Fork 3
46 lines (37 loc) · 1.06 KB
/
Copy pathci.yml
File metadata and controls
46 lines (37 loc) · 1.06 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
name: CI
on:
push:
branches: [master]
pull_request:
branches: [master]
permissions:
contents: read
concurrency:
group: ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build-test:
name: Build & test
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Set up .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: 10.0.x
cache: true
cache-dependency-path: '**/*.csproj'
- name: Restore
run: dotnet restore CSharp_SimpleZipDrive.sln
- name: Build (Release)
run: dotnet build CSharp_SimpleZipDrive.sln -c Release --no-restore
- name: Test
run: dotnet test SimpleZipDrive.Tests\SimpleZipDrive.Tests.csproj -c Release --no-build --logger "trx;LogFileName=test-results.trx"
- name: Upload test results
if: always()
uses: actions/upload-artifact@v7
with:
name: test-results
path: '**/TestResults/*.trx'
if-no-files-found: ignore