-
-
Notifications
You must be signed in to change notification settings - Fork 10
42 lines (35 loc) · 1.44 KB
/
branch_preview_tests.yml
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
name: Branch Preview Tests
on:
push:
branches:
- preview
paths:
- '**.csproj'
- '**.razor'
- '**.cs'
- '**.csproj'
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout to the repository
uses: actions/checkout@v4
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v2.0.0
with:
vs-prerelease: true
- name: Setup Nuget Cache
uses: actions/cache@v4
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
restore-keys: |
${{ runner.os }}-nuget-
- name: Install dependencies
run: nuget restore TgDownloader.sln
- name: Tests for Release Any CPU
run: | #
dotnet test Tests/TgAssertCoreTests/TgAssertCoreTests.csproj --no-restore --verbosity quiet -property:Configuration=Release -property:Platform="Any CPU"
dotnet test Tests/TgDownloaderConsoleTest/TgDownloaderConsoleTest.csproj --no-restore --verbosity quiet -property:Configuration=Release -property:Platform="Any CPU"
dotnet test Tests/TgDownloaderTest/TgDownloaderTest.csproj --no-restore --verbosity quiet -property:Configuration=Release -property:Platform="Any CPU"
# dotnet test Tests/TgStorageTest/TgStorageTest.csproj --no-restore --verbosity quiet -property:Configuration=Release -property:Platform="Any CPU"