Skip to content

Commit

Permalink
Add .NET MAUI CI
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesmontemagno authored Mar 26, 2024
1 parent 15be262 commit bd247b4
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,16 @@ name: Playwright Tests for eShop
on:
push:
branches: [ main ]
paths-ignore:
- '**.md'
- 'src/ClientApp/**'
- 'test/ClientApp.UnitTests/**'
pull_request:
branches: [ main ]
paths-ignore:
- '**.md'
- 'src/ClientApp/**'
- 'test/ClientApp.UnitTests/**'
jobs:
test:
timeout-minutes: 60
Expand Down
36 changes: 36 additions & 0 deletions .github/workflows/pr-validation-maui.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: eShop Pull Request Validation

on:
pull_request:
branches:
- '**'
paths:
- 'src/ClientApp/**'
- 'test/ClientApp.UnitTests/**'
paths-ignore:
- '**.md'
push:
branches:
- main
paths:
- 'src/ClientApp/**'
- 'test/ClientApp.UnitTests/**'
paths-ignore:
- '**.md'


jobs:
test:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET (global.json)
uses: actions/setup-dotnet@v3
- name: Update Workloads
run: dotnet workload update
- name: Install Workloads
run: dotnet workload install maui
- name: Build
run: dotnet build src/ClientApp/ClientApp.csproj
- name: Test
run: dotnet test tests/ClientApp.UnitTests/ClientApp.UnitTests.csproj
5 changes: 4 additions & 1 deletion .github/workflows/pr-validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,15 @@ on:
pull_request:
paths-ignore:
- '**.md'
- 'src/ClientApp/**'
- 'test/ClientApp.UnitTests/**'
push:
branches:
- main
paths-ignore:
- '**.md'

- 'src/ClientApp/**'
- 'test/ClientApp.UnitTests/**'

jobs:
test:
Expand Down

0 comments on commit bd247b4

Please sign in to comment.