Merge pull request #1366 from microsoftgraph/ci/ts-annotations #2251
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: .NET | |
on: | |
push: | |
branches: [ main, dev ] | |
pull_request: | |
branches: [ main, dev ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Setup .NET | |
uses: actions/[email protected] | |
with: | |
dotnet-version: 8.0.x | |
- name: Restore dependencies | |
run: dotnet restore ./Typewriter.sln | |
- name: Build | |
run: dotnet build ./Typewriter.sln --no-restore | |
- name: Test | |
run: dotnet test ./Typewriter.sln --no-build --verbosity normal | |
- name: Upload languages test output on failure | |
uses: actions/upload-artifact@v4 | |
if: ${{ failure() }} | |
with: | |
name: languages-test-output | |
path: 'test/Typewriter.Test/bin/Debug/net8.0/OutputDirectory*/**' | |
- name: Upload unit test output on failure | |
uses: actions/upload-artifact@v4 | |
if: ${{ failure() }} | |
with: | |
name: unit-test-output | |
path: test/Typewriter.Test/bin/Debug/net8.0/output/ |