-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (40 loc) · 1.38 KB
/
mstest_6_0_test.yml
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
name: Run Automated Tests (MsTest)
on:
push:
branches: [ master ]
jobs:
run-tests:
runs-on: ubuntu-latest
env:
MAJOR_VERSION: 6
MINOR_VERSION: 0
SOLUTION_PATH: ./src/6.0/
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 6.0.x
- name: Remove annotations
run: echo "::remove-matcher owner=csc::"
- name: Install specflow-to-markdown tool
run: dotnet tool install -g Gman.SpecFlowToMarkdown
- name: Restore dependencies
run: dotnet restore $SOLUTION_PATH
- name: Build
run: dotnet build $SOLUTION_PATH --no-restore --ignore-failed-sources -c Release
- name: Test
run: dotnet test $SOLUTION_PATH --no-restore --verbosity normal --logger "trx;LogFileName=test-results.trx"
- name: Run SpecFlow To Markdown Tool
if: always()
run: specflow-to-markdown ./ My.Test.Library.MsTest.Unit.Tests.dll ./ TestExecution.json ./MS_MARKDOWN_TEST_SUMMARY.md
- name: Checks action
uses: LouisBrunner/checks-action@v2.0.0
if: always()
with:
token: ${{ secrets.GITHUB_TOKEN }}
name: SpecFlow Test Summary (MsTest 6.0)
conclusion: ${{ job.status }}
output: |
{"summary":"${{ steps.test.outputs.summary }}"}
output_text_description_file: ./MS_MARKDOWN_TEST_SUMMARY.md