Skip to content

Commit

Permalink
Build: minor improvements (#53)
Browse files Browse the repository at this point in the history
* Build: Improve System.Waf.CI.yml

* Build: minor improvement
  • Loading branch information
jbe2277 authored Oct 30, 2024
1 parent f7288af commit f7780c6
Showing 1 changed file with 22 additions and 8 deletions.
30 changes: 22 additions & 8 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,17 +38,19 @@ 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

- name: 📦 Upload UI Test results
uses: actions/upload-artifact@v4
if: always()
with:
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 f7780c6

Please sign in to comment.