File tree Expand file tree Collapse file tree 2 files changed +45
-4
lines changed
Expand file tree Collapse file tree 2 files changed +45
-4
lines changed Original file line number Diff line number Diff line change @@ -3,13 +3,9 @@ name: 🛠️ build
33on :
44 workflow_dispatch :
55 push :
6- branches :
7- - main
86 tags :
97 - " [0-9]+.[0-9]+.[0-9]+"
108 - " [0-9]+.[0-9]+.[0-9]+-**"
11- pull_request :
12- types : [opened, reopened, edited, synchronize]
139
1410jobs :
1511 test :
Original file line number Diff line number Diff line change 1+ name : 🧪 test
2+
3+ on :
4+ workflow_dispatch :
5+ push :
6+ branches :
7+ - main
8+ pull_request :
9+ types : [opened, reopened, edited, synchronize]
10+
11+ jobs :
12+ test :
13+ name : 🧪 Run tests
14+ runs-on : ubuntu-latest
15+ strategy :
16+ matrix :
17+ roslyn : ["3.11", "4.0", "4.4"]
18+ steps :
19+ - name : 🛒 Check-out code
20+ uses : actions/checkout@v4
21+
22+ - name : 📐 Setup .NET Core SDK
23+ uses : actions/setup-dotnet@v4
24+ with :
25+ global-json-file : src/global.json
26+
27+ - name : 🔍 Enable problem matchers
28+ run : echo "::add-matcher::.github/matchers/dotnet.json"
29+
30+ - name : 🛠️ Build code
31+ run : dotnet build --configuration Release
32+
33+ - name : 🧪 Testing ${{ matrix.roslyn }} code
34+ run : >
35+ dotnet test
36+ --configuration Release
37+ -p:GeneratorVersion=${{ matrix.roslyn }}
38+
39+ - name : Upload Test Results
40+ if : failure()
41+ uses : actions/upload-artifact@v4
42+ with :
43+ name : verify-test-results
44+ path : |
45+ **/*.received.*
You can’t perform that action at this time.
0 commit comments