Skip to content

Commit

Permalink
Fixed dotnet.yml workflow pipeline.
Browse files Browse the repository at this point in the history
  • Loading branch information
nthnn committed Jul 15, 2024
1 parent e51dcbf commit d735e5e
Showing 1 changed file with 16 additions and 11 deletions.
27 changes: 16 additions & 11 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,31 @@
name: .NET Build CI
name: .NET Desktop CI

on:
push:
branches: [main]
branches:
- main
pull_request:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest

runs-on: windows-latest

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v2

- name: Setup .NET
uses: actions/setup-dotnet@v4
uses: actions/setup-dotnet@v1
with:
dotnet-version: 8.0.x
dotnet-version: '8.0'

- name: Restore dependencies
run: dotnet restore

- name: Build
run: dotnet build --no-restore /p:EnableWindowsTargeting=true
run: dotnet build --configuration Release --no-restore

- name: Test
run: dotnet test --no-build /p:EnableWindowsTargeting=true --verbosity normal
run: dotnet test --no-build --verbosity normal

0 comments on commit d735e5e

Please sign in to comment.