-
-
Notifications
You must be signed in to change notification settings - Fork 4
47 lines (39 loc) · 1.14 KB
/
test.yml
File metadata and controls
47 lines (39 loc) · 1.14 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: 🧪 test
on:
workflow_call:
jobs:
test:
name: 🧪 Run tests
runs-on: ubuntu-latest
strategy:
matrix:
roslyn: ["3.11", "4.0", "4.4"]
steps:
- name: 🛒 Check-out code
uses: actions/checkout@v6
- name: 📐 Setup .NET Core SDK
uses: actions/setup-dotnet@v5
with:
global-json-file: src/global.json
- name: 📦 Cache NuGet packages
uses: actions/cache@v5
with:
path: ~/.nuget/packages
key: nuget-${{ hashFiles('**/Directory.Packages.props') }}
restore-keys: nuget-
- name: 🔍 Enable problem matchers
run: echo "::add-matcher::.github/matchers/dotnet.json"
- name: 🛠️ Build code
run: dotnet build --configuration Release
- name: 🧪 Testing ${{ matrix.roslyn }} code
run: >
dotnet test
--configuration Release
-p:GeneratorVersion=${{ matrix.roslyn }}
- name: Upload Test Results
if: failure()
uses: actions/upload-artifact@v7
with:
name: verify-test-results
path: |
**/*.received.*