[#1136] Update badge to use internal icons for some status #1098
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
| # | |
| # Software Name: Orange Unified Design System | |
| # SPDX-FileCopyrightText: Copyright (c) Orange SA | |
| # SPDX-License-Identifier: MIT | |
| # | |
| # This software is distributed under the MIT license, | |
| # the text of which is available at https://opensource.org/license/MIT/ | |
| # or see the "LICENSE" file for more details. | |
| # | |
| # Authors: See CONTRIBUTORS.txt | |
| # Software description: A SwiftUI components library with code examples for Orange Unified Design System | |
| # | |
| # About runners: https://docs.github.com/en/actions/using-github-hosted-runners/using-github-hosted-runners/about-github-hosted-runners | |
| # Runners details: https://github.com/actions/runner-images/tree/main/images/macos | |
| # Rules for this GitHub Actions workflow | |
| # - workflow can be triggered manually if needed (workflow_dispatch) | |
| # - use "almost" frozen version of macOS | |
| # - is for branches main, develop and all | |
| # - automatically triggered when pull request is opened and has new commits (synchronize) | |
| # But beware, triggered on commit push, so do not be a push-machine-gun! | |
| name: Build and test demo app | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - develop | |
| - '*' | |
| pull_request: | |
| types: | |
| - opened | |
| - synchronize | |
| branches: | |
| - main | |
| - develop | |
| - '*' | |
| permissions: | |
| contents: read | |
| jobs: | |
| # Build the app (if there are linter errors or compiler issues, it will fail) | |
| build: | |
| runs-on: macos-26 | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| - name: Set up Xcode 26.0.1 | |
| run: | | |
| sudo xcode-select -s /Applications/Xcode_26.0.1.app/Contents/Developer | |
| - name: Set up Ruby | |
| uses: ruby/setup-ruby@d5126b9b3579e429dd52e51e68624dda2e05be25 # v1.267.0, https://github.com/ruby/setup-ruby | |
| with: | |
| ruby-version: '3.4.7' | |
| - name: Install Fastlane | |
| run: | | |
| bundle install | |
| - name: Build demo app (iOS, macOS, visionOS, watchOS, tvOS) | |
| run: | | |
| cd DesignToolbox | |
| xcrun simctl list # List available simulators | |
| bundle exec fastlane ios build_debug | |
| bundle exec fastlane mac build_debug | |
| bundle exec fastlane vision build_debug | |
| bundle exec fastlane watch build_debug | |
| bundle exec fastlane tv build_debug | |
| # Test the app with unit tests | |
| unit-test: | |
| runs-on: macos-26 | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| - name: Set up Xcode 26.0.1 | |
| run: | | |
| sudo xcode-select -s /Applications/Xcode_26.0.1.app/Contents/Developer | |
| - name: Set up Ruby | |
| uses: ruby/setup-ruby@d5126b9b3579e429dd52e51e68624dda2e05be25 # v1.267.0, https://github.com/ruby/setup-ruby | |
| with: | |
| ruby-version: '3.4.7' | |
| - name: Install Fastlane | |
| run: | | |
| bundle install | |
| - name: Run unit tests on demo app | |
| run: | | |
| cd DesignToolbox | |
| bundle exec fastlane ios test_unit | |
| # Test the app / library with UI tests | |
| ui-test: | |
| runs-on: macos-26 | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| - name: Set up Xcode 26.0.1 | |
| run: | | |
| sudo xcode-select -s /Applications/Xcode_26.0.1.app/Contents/Developer | |
| - name: Set up Ruby | |
| uses: ruby/setup-ruby@d5126b9b3579e429dd52e51e68624dda2e05be25 # v1.267.0, https://github.com/ruby/setup-ruby | |
| with: | |
| ruby-version: '3.4.7' | |
| - name: Install Fastlane | |
| run: | | |
| bundle install | |
| - name: Run UI-based unit tests on demo app | |
| run: | | |
| cd DesignToolbox | |
| bundle exec fastlane ios test_ui | |
| # Test the app / library with snapshots tests | |
| snapshots-test: | |
| runs-on: macos-26 | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| - name: Set up Xcode 26.0.1 | |
| run: | | |
| sudo xcode-select -s /Applications/Xcode_26.0.1.app/Contents/Developer | |
| - name: Set up Ruby | |
| uses: ruby/setup-ruby@d5126b9b3579e429dd52e51e68624dda2e05be25 # v1.267.0, https://github.com/ruby/setup-ruby | |
| with: | |
| ruby-version: '3.4.7' | |
| - name: Install Fastlane | |
| run: | | |
| bundle install | |
| - name: Run snapshots tests on demo app | |
| run: | | |
| cd DesignToolbox | |
| xcrun simctl list # List available simulators | |
| bundle exec fastlane ios test_snapshots |