Add Autosuggest show=details support and structured address fields #97
This file contains hidden or 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
| name: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| permissions: | |
| contents: read | |
| jobs: | |
| build-and-test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| dotnet-version: ['8.0.x', '9.0.x', '10.0.x'] | |
| include: | |
| - dotnet-version: '8.0.x' | |
| target-framework: net8.0 | |
| - dotnet-version: '9.0.x' | |
| target-framework: net9.0 | |
| - dotnet-version: '10.0.x' | |
| target-framework: net10.0 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-dotnet@v5 | |
| with: | |
| dotnet-version: ${{ matrix.dotnet-version }} | |
| - run: dotnet restore | |
| - run: dotnet build -c Release -f ${{ matrix.target-framework }} --no-restore | |
| working-directory: tests/HerePlatform.Blazor.Tests | |
| - run: dotnet test -c Release -f ${{ matrix.target-framework }} --no-build | |
| working-directory: tests/HerePlatform.Blazor.Tests | |
| restclient-tests: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| dotnet-version: ['8.0.x', '9.0.x', '10.0.x'] | |
| include: | |
| - dotnet-version: '8.0.x' | |
| target-framework: net8.0 | |
| - dotnet-version: '9.0.x' | |
| target-framework: net9.0 | |
| - dotnet-version: '10.0.x' | |
| target-framework: net10.0 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-dotnet@v5 | |
| with: | |
| dotnet-version: ${{ matrix.dotnet-version }} | |
| - run: dotnet restore | |
| - run: dotnet build -c Release -f ${{ matrix.target-framework }} --no-restore | |
| working-directory: tests/HerePlatform.RestClient.Tests | |
| - run: dotnet test -c Release -f ${{ matrix.target-framework }} --no-build | |
| working-directory: tests/HerePlatform.RestClient.Tests | |
| core-change-check: | |
| if: github.event_name == 'push' && github.ref == 'refs/heads/main' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: Check for unreleased Core changes | |
| run: | | |
| check_package() { | |
| local PACKAGE=$1 | |
| local PACKAGE_DIR=$2 | |
| local TAG_PREFIX=$3 | |
| LATEST_TAG=$(git tag -l "${TAG_PREFIX}/v*" --sort=-v:refname | head -n 1) | |
| if [ -z "$LATEST_TAG" ]; then | |
| echo "No release tag found for ${PACKAGE}, skipping core-change check." | |
| return | |
| fi | |
| CORE_CHANGED=$(git diff --name-only "$LATEST_TAG"..HEAD -- HerePlatform.Core/ | head -n 1) | |
| if [ -z "$CORE_CHANGED" ]; then | |
| return | |
| fi | |
| PKG_CHANGED=$(git diff --name-only "$LATEST_TAG"..HEAD -- "$PACKAGE_DIR/" | head -n 1) | |
| if [ -z "$PKG_CHANGED" ]; then | |
| echo "::warning::HerePlatform.Core has changed since ${LATEST_TAG} but ${PACKAGE_DIR} has not been released." | |
| fi | |
| } | |
| check_package "Blazor" "HerePlatform.Blazor" "blazor" | |
| check_package "RestClient" "HerePlatform.RestClient" "restclient" |