Skip to content

Commit 2491a19

Browse files
authored
attempt to run all tests in CI (except for those marked as skip) (#252)
* publish test results in the PR * update reporter to dotnet-nunit * move test results to separate workflow
1 parent 29af3e9 commit 2491a19

File tree

2 files changed

+23
-2
lines changed

2 files changed

+23
-2
lines changed

.github/workflows/build-test-installer-release.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,12 @@ jobs:
4646
4747
# Otherwise find the latest tag that starts with v and strip off the v
4848
LAST_TAG=$(git describe --tags --match "v*" --abbrev=0 2>/dev/null || echo "v0.0.0")
49-
LAST_TAG="${LAST_TAG#v}"
5049
5150
# Compute a build number based on number of commits since that tag
5251
COMMITS_SINCE_TAG=$(git rev-list ${LAST_TAG}..HEAD --count)
5352
5453
# Final version: X.Y.Z
55-
Version="${LAST_TAG}.${COMMITS_SINCE_TAG}"
54+
Version="${LAST_TAG#v}.${COMMITS_SINCE_TAG}"
5655
echo "version=$Version" >> $GITHUB_OUTPUT
5756
echo "no tag push; using $Version"
5857

.github/workflows/test-report.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: 'Test Report'
2+
# This is recommended to run after the CI workflow to publish test results since it has different
3+
# permissions
4+
on:
5+
workflow_run:
6+
workflows: ['CI'] # runs after CI workflow
7+
types:
8+
- completed
9+
permissions:
10+
contents: read
11+
actions: read
12+
checks: write
13+
jobs:
14+
report:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: dorny/test-reporter@v2
18+
with:
19+
artifact: saymore-test-results
20+
name: NUnit Tests
21+
path: '*.xml' # Path to test results (inside artifact .zip)
22+
reporter: dotnet-nunit

0 commit comments

Comments
 (0)