Skip to content

Commit 355ee65

Browse files
committed
Updating workflows
1 parent b29cf9b commit 355ee65

File tree

2 files changed

+45
-4
lines changed

2 files changed

+45
-4
lines changed

.github/workflows/build.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,9 @@ name: 🛠️ build
33
on:
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

1410
jobs:
1511
test:

.github/workflows/test.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
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.*

0 commit comments

Comments
 (0)