chore(deps): bump actions/checkout from 4.1.5 to 5.0.1 #239
Workflow file for this run
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
| # Copyright 2023 Google LLC | |
| # | |
| # Licensed under the Apache License, Version 2.0 (the "License"); | |
| # you may not use this file except in compliance with the License. | |
| # You may obtain a copy of the License at | |
| # | |
| # https://www.apache.org/licenses/LICENSE-2.0 | |
| # | |
| # Unless required by applicable law or agreed to in writing, software | |
| # distributed under the License is distributed on an "AS IS" BASIS, | |
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
| # See the License for the specific language governing permissions and | |
| # limitations under the License. | |
| name: Run test and build | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| test-dart: | |
| timeout-minutes: 45 | |
| runs-on: | |
| labels: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd | |
| - uses: actions/setup-java@v4 | |
| with: | |
| distribution: "temurin" | |
| java-version: "17" | |
| cache: "gradle" | |
| - uses: subosito/flutter-action@44ac965b96f18d999802d4b807e3256d5a3f9fa1 | |
| with: | |
| flutter-version: "3.32.x" | |
| channel: "stable" | |
| cache: true | |
| - uses: bluefireteam/melos-action@6085791af7036f6366c9a4b9d55105c0ef9c6388 | |
| with: | |
| melos-version: "6.0.0" | |
| - name: "Run flutter test" | |
| run: melos run test:dart | |
| test-android: | |
| timeout-minutes: 45 | |
| runs-on: | |
| labels: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd | |
| - uses: actions/setup-java@v4 | |
| with: | |
| distribution: "temurin" | |
| java-version: "17" | |
| cache: "gradle" | |
| - uses: subosito/flutter-action@44ac965b96f18d999802d4b807e3256d5a3f9fa1 | |
| with: | |
| flutter-version: "3.32.x" | |
| channel: "stable" | |
| cache: true | |
| - uses: bluefireteam/melos-action@6085791af7036f6366c9a4b9d55105c0ef9c6388 | |
| with: | |
| melos-version: "6.0.0" | |
| - name: "Run Android native unit tests" | |
| run: melos run test:android | |
| test-ios: | |
| timeout-minutes: 45 | |
| runs-on: | |
| labels: macos-latest-xlarge | |
| strategy: | |
| matrix: | |
| working_directory: ["example"] | |
| steps: | |
| - uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd | |
| - uses: actions/cache@v4 | |
| with: | |
| path: "**/Pods" | |
| key: ${{ runner.os }}-pods-${{ hashFiles('**/*.podspec') }} | |
| restore-keys: | | |
| ${{ runner.os }}-pods- | |
| - uses: subosito/flutter-action@44ac965b96f18d999802d4b807e3256d5a3f9fa1 | |
| with: | |
| flutter-version: "3.32.x" | |
| channel: "stable" | |
| cache: true | |
| - uses: bluefireteam/melos-action@6085791af7036f6366c9a4b9d55105c0ef9c6388 | |
| with: | |
| melos-version: "6.0.0" | |
| - name: Select XCode 16.1 | |
| run: sudo xcode-select -s '/Applications/Xcode_16.1.0.app/Contents/Developer' | |
| - name: Generate necessary files with flutter build | |
| working-directory: ${{ matrix.working_directory }} | |
| run: flutter build ios --config-only | |
| - name: "Run iOS native unit tests" | |
| run: TEST_DEVICE='iPhone 16 Pro' TEST_OS='18.1' melos run test:ios | |
| build-android: | |
| needs: [test-dart, test-android, test-ios] | |
| if: contains(github.base_ref, 'main') | |
| timeout-minutes: 45 | |
| runs-on: | |
| labels: ubuntu-latest | |
| env: | |
| MAPS_API_KEY: ${{ secrets.ACTIONS_API_KEY }} | |
| steps: | |
| - uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd | |
| - uses: actions/setup-java@v4 | |
| with: | |
| distribution: "temurin" | |
| java-version: "17" | |
| cache: "gradle" | |
| - uses: subosito/flutter-action@44ac965b96f18d999802d4b807e3256d5a3f9fa1 | |
| with: | |
| flutter-version: "3.32.x" | |
| channel: "stable" | |
| cache: true | |
| - uses: bluefireteam/melos-action@6085791af7036f6366c9a4b9d55105c0ef9c6388 | |
| with: | |
| melos-version: "6.0.0" | |
| - name: "Run build for Android" | |
| run: melos run flutter-build-android | |
| build-ios: | |
| needs: [test-dart, test-android, test-ios] | |
| if: contains(github.base_ref, 'main') | |
| timeout-minutes: 90 | |
| runs-on: macos-latest-xlarge | |
| env: | |
| MAPS_API_KEY: ${{ secrets.ACTIONS_API_KEY }} | |
| steps: | |
| - uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd | |
| - uses: subosito/flutter-action@44ac965b96f18d999802d4b807e3256d5a3f9fa1 | |
| with: | |
| flutter-version: "3.32.x" | |
| channel: "stable" | |
| cache: true | |
| architecture: x64 | |
| - uses: bluefireteam/melos-action@6085791af7036f6366c9a4b9d55105c0ef9c6388 | |
| with: | |
| melos-version: "6.0.0" | |
| - uses: actions/cache@v4 | |
| with: | |
| path: "**/Pods" | |
| key: ${{ runner.os }}-pods-${{ hashFiles('**/*.podspec') }} | |
| restore-keys: | | |
| ${{ runner.os }}-pods- | |
| - name: Select XCode 16.1 | |
| run: sudo xcode-select -s '/Applications/Xcode_16.1.0.app/Contents/Developer' | |
| - name: "Run build for iOS" | |
| run: melos run flutter-build-ios |