Skip to content

Commit

Permalink
Build: Improve System.Waf.CI.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jbe2277 authored Oct 30, 2024
1 parent f7288af commit cc71a13
Showing 1 changed file with 20 additions and 7 deletions.
27 changes: 20 additions & 7 deletions .github/workflows/System.Waf.CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,30 @@ on:
- 'src/System.Waf/**'
- 'src/Samples.UITest/**'
- '.github/workflows/**'

jobs:
build:
name: 🛠️ Build and test
runs-on: windows-latest

steps:
- uses: actions/checkout@v4
- name: 🔖 Check-out
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Build

- name: ⚙️ Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8'

- name: 🛠️ Build
run: dotnet build ./src/System.Waf/System.Waf.sln -c Release -p:ContinuousIntegrationBuild=true
- name: Test

- name: 🕵️ Test
run: dotnet test ./src/System.Waf/System.Waf.sln -c Release --no-build
- name: Upload NuGet Packages

- name: 📦 Upload NuGet Packages
uses: actions/upload-artifact@v4
with:
name: Packages
Expand All @@ -26,7 +38,7 @@ jobs:
src/System.Waf/System.Waf/**/*.nupkg
src/System.Waf/System.Waf/**/*.snupkg
- name: UI Test
- name: 🖥️ UI Test
run: dotnet test ./src/Samples.UITest/Samples.UITest.sln --logger "console;verbosity=detailed" -maxCpuCount:1
- name: Upload UI Test results
uses: actions/upload-artifact@v4
Expand All @@ -35,8 +47,9 @@ jobs:
name: UITestResults
if-no-files-found: ignore
path: |
out/Samples.UITest/
- name: Upload UI Test App logs
out/Samples.UITest/
- name: 📦 Upload UI Test App logs
uses: actions/upload-artifact@v4
if: always()
with:
Expand Down

0 comments on commit cc71a13

Please sign in to comment.