Skip to content

Commit

Permalink
ci changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Confusingboat committed Mar 16, 2024
1 parent 2fa20b0 commit cac93e2
Showing 1 changed file with 18 additions and 6 deletions.
24 changes: 18 additions & 6 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ on:
- '*'

env:
TIMEZONE: 'America/Chicago'
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
DOTNET_NOLOGO: true
ArtifactDirectory: ${{ github.workspace}}/artifacts
Expand Down Expand Up @@ -50,7 +51,7 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6
dotnet-version: 8
dotnet-quality: ga

- name: Restore dependencies
Expand All @@ -69,15 +70,26 @@ jobs:
# interval: 500

- name: Test
id: test
if: ${{ github.event_name == 'pull_request' || github.ref == 'refs/heads/main' }}
run: dotnet test --no-build --verbosity normal --logger:trx --results-directory ${{ env.ArtifactDirectory }}

- name: Publish Test Results
uses: EnricoMi/publish-unit-test-result-action/composite@v2
if: always()
- name: Test Results Comment
if: always() && steps.test.outcome == 'success' || steps.test.outcome == 'failure'
uses: im-open/[email protected]
with:
files: |
${{ env.ArtifactDirectory }}/**/*.trx
github-token: ${{ secrets.GITHUB_TOKEN }}
timezone: ${{ env.TIMEZONE }}
create-status-check: false
create-pr-comment: true
comment-identifier: 'TestResults'

# - name: Publish Test Results
# uses: EnricoMi/publish-unit-test-result-action/composite@v2
# if: always()
# with:
# files: |
# ${{ env.ArtifactDirectory }}/**/*.trx

tag:
if: ${{ github.event_name != 'pull_request' }}
Expand Down

0 comments on commit cac93e2

Please sign in to comment.