[TEST PR] Test Running CI Validation #1776
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# CI workflow for PRs and merges to master | |
name: CI | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
continue-on-error: ${{ matrix.os == 'ubuntu-latest' }} | |
strategy: | |
matrix: | |
os: [windows-latest, macos-latest, ubuntu-latest] | |
env: | |
DOTNET_NOLOGO: true | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
lfs: true | |
- uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: | | |
7.0.x | |
8.0.x | |
- run: dotnet --info | |
- name: Build (win) | |
run: ./build ci | |
shell: cmd | |
if: ${{ runner.os == 'Windows' }} | |
## Only difference here is not forcing cmd | |
- name: Build (ubuntu & macos) | |
run: ./build ci | |
if: ${{ runner.os != 'Windows' }} | |
- name: Test - Persistence | |
run: dotnet bin/Debug/Persistence.Tests/Persistence.Tests.dll | |
- name: Test - YamlValidator | |
run: dotnet bin/Debug/YamlValidator.Tests/YamlValidator.Tests.dll | |
- name: Test - PAModel | |
run: dotnet bin/Debug/PAModelTests/PAModelTests.dll | |
- name: Test - Persistence Test Yaml Files (ubuntu & macos) | |
run: | | |
resultApp=$(dotnet bin/Debug/YamlValidator/YamlValidator.dll validate --path "../Persistence.Tests/_TestData/AppsWithYaml") | |
echo "$resultApp" | |
if [ "$resultApp" == *"Validation Failed"* ]; then | |
echo "Invalid Yaml Files found in ../../src/Persistence.Tests/_TestData/AppsWithYaml" | |
exit 1 | |
fi | |
resultFiles=$(dotnet bin/Debug/YamlValidator/YamlValidator.dll validate --path "../Persistence.Tests/_TestData/ValidYaml-CI") | |
echo "$resultFiles" | |
if [ "$resultFiles" == *"Validation Failed"* ]; then | |
echo "Invalid Yaml Files found in ../../src/Persistence.Tests/_TestData/ValidYaml-CI" | |
exit 1 | |
fi | |
if: ${{ runner.os != 'Windows' }} | |
- name: Restore workloads for samples | |
run: dotnet workload restore samples/MauiMsApp/MauiMsApp.csproj | |
- name: Install maui-tizen workload | |
run: dotnet workload install maui-tizen | |
- name: Build samples | |
run: dotnet build samples/samples.sln | |
if: ${{ runner.os == 'Windows' }} |