-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (46 loc) · 1.56 KB
/
Copy pathpr-validation.yml
File metadata and controls
55 lines (46 loc) · 1.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# EightBot.Maui.Badger - Pull Request Validation
name: PR Validation
on:
pull_request:
branches: [main, develop]
types: [opened, synchronize, reopened]
env:
DOTNET_VERSION: '9.0.x'
DOTNET_NOLOGO: true
DOTNET_CLI_TELEMETRY_OPTOUT: true
LIBRARY_PROJECT: src/EightBot.Maui.Badger/EightBot.Maui.Badger/EightBot.Maui.Badger.csproj
jobs:
# =============================================================================
# Build and Validate
# =============================================================================
validate:
name: Build & Validate
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
- name: Install MAUI Workloads
run: dotnet workload install maui
- name: Restore
run: dotnet restore ${{ env.LIBRARY_PROJECT }}
- name: Build Library (All Platforms)
run: dotnet build ${{ env.LIBRARY_PROJECT }} -c Release --no-restore
- name: Check Package Metadata
run: |
dotnet pack ${{ env.LIBRARY_PROJECT }} \
-c Release \
-o ./artifacts \
-p:PackageVersion=0.0.1-validation \
--no-restore
# Verify package was created
if [ -f ./artifacts/*.nupkg ]; then
echo "✅ NuGet package created successfully"
ls -la ./artifacts/
else
echo "❌ NuGet package was not created"
exit 1
fi