-
Notifications
You must be signed in to change notification settings - Fork 2k
52 lines (42 loc) · 1.2 KB
/
update-dependencies-tests.yml
File metadata and controls
52 lines (42 loc) · 1.2 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
48
49
50
51
52
name: Update Dependencies Tests
on:
pull_request:
paths:
- 'eng/update-dependencies/**'
- 'tests/UpdateDependencies.Tests/**'
- '.github/workflows/update-dependencies-tests.yml'
permissions: {}
jobs:
test:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '9.0.x'
- name: Restore dependencies
run: >
dotnet restore
tests/UpdateDependencies.Tests/UpdateDependencies.Tests.csproj
--verbosity normal
- name: Build tests
run: >
dotnet build
tests/UpdateDependencies.Tests/UpdateDependencies.Tests.csproj
--no-restore
- name: Run tests
run: >
dotnet test
tests/UpdateDependencies.Tests/UpdateDependencies.Tests.csproj
--no-build --verbosity normal --logger trx
--results-directory TestResults
- name: Upload test results
uses: actions/upload-artifact@v4
if: always()
with:
name: test-results
path: TestResults/*.trx