Skip to content

Edit files with no extension as text documents (#534) #8

Edit files with no extension as text documents (#534)

Edit files with no extension as text documents (#534) #8

Workflow file for this run

name: CI
on:
push:
branches: ['**'] # Run on all branches
pull_request:
branches: [main] # Run on PRs targeting main
jobs:
test:
name: Run Unit Tests
runs-on: ubuntu-latest # Linux runner - faster and cross-platform compatible
permissions:
contents: read
checks: write
pull-requests: write
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '9.0.x'
- name: Restore dependencies
working-directory: ./app
run: dotnet restore
- name: Build solution
working-directory: ./app
run: dotnet build --no-restore --configuration Release
- name: Run tests
working-directory: ./app
run: dotnet test --no-build --configuration Release --verbosity normal --logger "trx;LogFileName=test-results.trx"
- name: Publish test results
uses: dorny/test-reporter@v1
if: always() # Run even if tests fail
with:
name: Unit Test Results
path: '**/test-results.trx'
reporter: dotnet-trx
fail-on-error: true