Updated CI/CD workflow #70
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
# This is a simple workflow that will build a .NET MAUI project, specifically targeting the android platform. | |
# It's meant for continuous integration, so running tests and making sure it all builds without failure. | |
name: GainsTracker Native | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
permissions: | |
contents: read | |
env: | |
DOTNET_NOLOGO: true # Disable the .NET logo | |
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true # Disable the .NET first time experience | |
DOTNET_CLI_TELEMETRY_OPTOUT: true # Disable sending .NET CLI telemetry | |
# This should be updated in the future to include actual signing and publishing for each platform. | |
jobs: | |
build_and_test: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v2 | |
with: | |
dotnet-version: 7.0.x | |
- name: Install .NET MAUI | |
run: dotnet workload install maui | |
- name: Restore dependencies | |
run: dotnet restore | |
- name: Build | |
run: dotnet build GainsTracker.ClientNative/GainsTracker.ClientNative.csproj -c Release -f net7.0-android --no-restore | |
- name: Test | |
run: dotnet test --verbosity normal --no-restore |