ci: align workflows with current monorepo structure
Co-authored-by: Velik <hongochai10@users.noreply.github.com>
This commit is contained in:
95
.github/workflows/ci-mobile.yml
vendored
95
.github/workflows/ci-mobile.yml
vendored
@@ -3,55 +3,60 @@ name: Mobile Apps CI
|
||||
on:
|
||||
push:
|
||||
paths:
|
||||
- 'apps/app-*/**'
|
||||
- 'packages/**'
|
||||
- 'apps/app-client-base-net/**'
|
||||
- 'apps/app-client-base-swift/**'
|
||||
- 'apps/web-client-base-net/**'
|
||||
- 'apps/web-client-tpos-net/**'
|
||||
- 'apps/web-client-eggymon-landipage-net/**'
|
||||
pull_request:
|
||||
paths:
|
||||
- 'apps/app-*/**'
|
||||
- 'packages/**'
|
||||
- 'apps/app-client-base-net/**'
|
||||
- 'apps/app-client-base-swift/**'
|
||||
- 'apps/web-client-base-net/**'
|
||||
- 'apps/web-client-tpos-net/**'
|
||||
- 'apps/web-client-eggymon-landipage-net/**'
|
||||
|
||||
jobs:
|
||||
lint-and-test:
|
||||
dotnet-client-apps:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
project:
|
||||
- apps/web-client-base-net/src/WebClientBase.Server/WebClientBase.Server.csproj
|
||||
- apps/web-client-tpos-net/src/WebClientTpos.Server/WebClientTpos.Server.csproj
|
||||
- apps/web-client-eggymon-landipage-net/src/EggymonLandingPage.Server/EggymonLandingPage.Server.csproj
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Setup .NET
|
||||
uses: actions/setup-dotnet@v4
|
||||
with:
|
||||
dotnet-version: '10.0.x'
|
||||
|
||||
- name: Restore
|
||||
run: dotnet restore ${{ matrix.project }}
|
||||
|
||||
- name: Build
|
||||
run: dotnet build ${{ matrix.project }} --configuration Release --no-restore
|
||||
|
||||
swift-client-app:
|
||||
runs-on: macos-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Build Swift iOS app
|
||||
run: |
|
||||
xcodebuild \
|
||||
-project apps/app-client-base-swift/AppClientBaseSwift/AppClientBaseSwift.xcodeproj \
|
||||
-scheme AppClientBaseSwift \
|
||||
-sdk iphonesimulator \
|
||||
-destination 'platform=iOS Simulator,name=iPhone 16' \
|
||||
build
|
||||
|
||||
maui-project-validation:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Setup PNPM
|
||||
uses: pnpm/action-setup@v2
|
||||
with:
|
||||
version: 8
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '25'
|
||||
cache: 'pnpm'
|
||||
|
||||
- name: Install dependencies
|
||||
run: pnpm install --frozen-lockfile
|
||||
|
||||
- name: Setup Flutter
|
||||
uses: subosito/flutter-action@v2
|
||||
with:
|
||||
flutter-version: '3.16.0'
|
||||
channel: 'stable'
|
||||
|
||||
- name: Install Flutter dependencies (Admin)
|
||||
run: |
|
||||
cd apps/app-admin
|
||||
flutter pub get
|
||||
|
||||
- name: Install Flutter dependencies (Client)
|
||||
run: |
|
||||
cd apps/app-client
|
||||
flutter pub get
|
||||
|
||||
- name: Analyze Flutter code (Admin)
|
||||
run: |
|
||||
cd apps/app-admin
|
||||
flutter analyze
|
||||
|
||||
- name: Analyze Flutter code (Client)
|
||||
run: |
|
||||
cd apps/app-client
|
||||
flutter analyze
|
||||
|
||||
- name: Validate MAUI project file exists
|
||||
run: test -f apps/app-client-base-net/AppClientBase.csproj
|
||||
|
||||
Reference in New Issue
Block a user