Skip to content

Changed some StaticResources in QuestionDisplayCard.xaml to DynamicRe… #495

Changed some StaticResources in QuestionDisplayCard.xaml to DynamicRe…

Changed some StaticResources in QuestionDisplayCard.xaml to DynamicRe… #495

Workflow file for this run

name: Build Xamarin App
on: [push]
jobs:
build:
runs-on: macos-latest
steps:
# If this starts breaking check the mono and ios version, they should match the default Xamarin bundles
# found here https://github.com/actions/runner-images/blob/main/images/macos/macos-11-Readme.md#xamarin-bundles
- uses: actions/checkout@v3
- name: Set default Xamarin SDK versions
run: |
$VM_ASSETS/select-xamarin-sdk-v2.sh --mono=6.12 --ios=15.4 --android=12.0
- name: Setup .NET Core SDK 5.0.x
uses: actions/setup-dotnet@v3
with:
dotnet-version: '5.0.x'
- name: Install dependencies
run: nuget restore ./RightToAskClient/RightToAskClient.sln
- name: Decrypt large secret
run: ./scripts/decrypt_secret.sh
env:
AES_KEY_PASSPHRASE_FOR_MPS_FILE: ${{ secrets.AES_KEY_PASSPHRASE_FOR_MPS_FILE }}
- name: Write Geoscape API key
run: if [[ ! -e $FILE ]]; then printf "${{secrets.GEOSCAPEAPIKEY}}" >> $FILE; else echo "$FILE already exists"; fi
env:
FILE: "./RightToAskClient/RightToAskClient/RightTOAskClient/Resources/GeoscapeAPIKey"
- name: Build Unit tests
run: msbuild ./RightToAskClient/UnitTests/UnitTests.csproj /p:Configuration=Debug /t:Rebuild
- name: Install xunit cli tool
run : dotnet tool install -g xunit-cli
- name: Run xunit tests
run: xunit ./RightToAskClient/UnitTests/bin/Debug/net472/UnitTests.dll
- name: Build iOS App
run: msbuild ./RightToAskClient/RightToAskClient/RightToAskClient.iOS/RightToAskClient.iOS.csproj /p:Configuration=Debug /p:Platform=iPhoneSimulator /t:Rebuild
- name: Build Android App
run: msbuild ./RightToAskClient/RightToAskClient/RightToAskClient.Android/RightToAskClient.Android.csproj /p:Configuration=Debug /t:PackageForAndroid