@@ -19,76 +19,76 @@ jobs:
19
19
runs-on : ${{ matrix.os }}
20
20
permissions :
21
21
checks : write
22
- name : Run tests and create NuGet package
22
+ name : 🛠 Build, test and pack
23
23
steps :
24
- - name : Checkout git repository
24
+ - name : 🧑💻 Checkout git repository
25
25
uses : actions/checkout@v4
26
26
with :
27
27
fetch-depth : 0
28
- - name : Install .NET SDK
28
+ - name : 🧑🔧 Install .NET SDK
29
29
uses : actions/setup-dotnet@v4
30
- - name : Show .NET info
30
+ - name : ℹ️ Show .NET info
31
31
run : dotnet --info
32
- - name : Retrieve cached NuGet packages
32
+ - name : 💾 Retrieve cached NuGet packages
33
33
uses : actions/cache@v4
34
34
with :
35
35
path : ~/.nuget/packages
36
36
key : ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
37
37
restore-keys : |
38
38
${{ runner.os }}-nuget-
39
- - name : Restore NuGet packages
39
+ - name : ⚙️ Restore NuGet packages
40
40
run : dotnet restore
41
- - name : Build solution
41
+ - name : 🏗 Build solution
42
42
run : dotnet build --no-restore
43
- - name : Run tests
43
+ - name : 🧪 Run tests
44
44
run : dotnet test --no-build
45
- - name : Upload received files from failing tests
45
+ - name : 📤 Upload received files from failing tests
46
46
uses : actions/upload-artifact@v4
47
47
if : failure()
48
48
with :
49
49
name : Received-${{ runner.os }}
50
50
path : " **/*.received.*"
51
- - name : Upload test results
51
+ - name : 📤 Upload test results
52
52
uses : actions/upload-artifact@v4
53
53
if : always()
54
54
with :
55
55
name : TestResults (${{ runner.os }})
56
56
path : TestResults-*.html
57
- - name : Upload coverage report to Codecov
57
+ - name : 📤 Upload coverage report to Codecov
58
58
if : matrix.os == 'ubuntu-latest' && env.CODECOV_TOKEN != ''
59
59
uses : codecov/codecov-action@v4
60
60
with :
61
61
files : coverage/*/coverage.cobertura.xml
62
62
token : ${{ secrets.CODECOV_TOKEN }}
63
- - name : Upload coverage report to Codacy
63
+ - name : 📤 Upload coverage report to Codacy
64
64
env :
65
65
CODACY_PROJECT_TOKEN : ${{ secrets.CODACY_PROJECT_TOKEN }}
66
66
if : matrix.os == 'ubuntu-latest' && env.CODACY_PROJECT_TOKEN != ''
67
67
uses : codacy/codacy-coverage-reporter-action@v1
68
68
with :
69
69
project-token : ${{ env.CODACY_PROJECT_TOKEN }}
70
70
coverage-reports : coverage/*/coverage.cobertura.xml
71
- - name : Create NuGet package
71
+ - name : 📦 Create NuGet package
72
72
run : dotnet pack --no-build --output .
73
- - name : Upload NuGet package artifact
73
+ - name : 📤 Upload NuGet package artifact
74
74
if : matrix.os == 'ubuntu-latest'
75
75
uses : actions/upload-artifact@v4
76
76
with :
77
77
name : NuGet package
78
78
path : " *.nupkg"
79
- - name : Run mutation tests and upload report to Stryker dashboard
79
+ - name : 👽 Run mutation tests and upload report to Stryker dashboard
80
80
env :
81
81
STRYKER_DASHBOARD_API_KEY : ${{ secrets.STRYKER_DASHBOARD_API_KEY }}
82
82
if : matrix.os == 'ubuntu-latest' && env.STRYKER_DASHBOARD_API_KEY != ''
83
83
run : |
84
84
dotnet tool restore
85
85
dotnet tool run dotnet-stryker --reporter dashboard --version ${GITHUB_REF_NAME} --dashboard-api-key ${{ env.STRYKER_DASHBOARD_API_KEY }}
86
- - name : Retrieve release notes from tag
86
+ - name : 📝 Retrieve release notes from tag
87
87
if : matrix.os == 'ubuntu-latest' && startsWith(github.ref, 'refs/tags/')
88
88
run : |
89
89
git fetch --tags --force
90
90
git tag --list ${{ github.ref_name }} --format='%(contents)' > ReleaseNotes.md
91
- - name : Upload release notes
91
+ - name : 📤 Upload release notes
92
92
if : matrix.os == 'ubuntu-latest' && startsWith(github.ref, 'refs/tags/')
93
93
uses : actions/upload-artifact@v4
94
94
with :
@@ -102,19 +102,19 @@ jobs:
102
102
contents : write
103
103
name : Publish NuGet package and create GitHub release
104
104
steps :
105
- - name : Download NuGet package artifact
105
+ - name : 📥 Download NuGet package artifact
106
106
uses : actions/download-artifact@v4
107
107
with :
108
108
name : NuGet package
109
- - name : Download release notes artifact
109
+ - name : 📥 Download release notes artifact
110
110
uses : actions/download-artifact@v4
111
111
with :
112
112
name : Release Notes
113
- - name : Create GitHub Release
113
+ - name : 🚢 Create GitHub Release
114
114
uses : softprops/action-gh-release@v2
115
115
with :
116
116
name : Version ${{ github.ref_name }}
117
117
body_path : ReleaseNotes.md
118
118
prerelease : ${{ contains(github.ref_name, '-') }}
119
- - name : Publish NuGet package on nuget.org
119
+ - name : 🚀 Publish NuGet package on nuget.org
120
120
run : dotnet nuget push "*.nupkg" --source https://api.nuget.org/v3/index.json --api-key "${{ secrets.NUGET_API_KEY }}"
0 commit comments