Bump aws-sdk-s3 from 1.205.0 to 1.208.0 #1209
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: Build | |
| on: | |
| push: | |
| pull_request_target: | |
| types: [labeled] | |
| jobs: | |
| build: | |
| name: Build and test | |
| runs-on: [self-hosted, macOS, ARM64] | |
| env: | |
| DERIVED_DATA_PATH: 'DerivedData' | |
| DEVICE: 'iPhone 17 Pro' | |
| strategy: | |
| matrix: | |
| config: ['freemium', 'premium'] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| # Disable shallow clone for SonarCloud analysis | |
| # https://docs.sonarsource.com/sonarqube-cloud/advanced-setup/ci-based-analysis/github-actions-for-sonarcloud | |
| fetch-depth: 0 | |
| - uses: actions/cache@v4 | |
| with: | |
| path: .build | |
| key: ${{ runner.os }}-spm-${{ hashFiles('**/Package.resolved') }} | |
| restore-keys: | | |
| ${{ runner.os }}-spm- | |
| - name: Run process.sh script | |
| run: | | |
| ./Scripts/process.sh | |
| exit $? | |
| - name: Create CloudAccessSecrets | |
| run: | | |
| cd fastlane | |
| ./scripts/create-cloud-access-secrets.sh | |
| - name: Configuration for freemium | |
| if: ${{ matrix.config == 'freemium' }} | |
| run: | | |
| echo "BUILD_CMD=-enableCodeCoverage YES" >> $GITHUB_ENV | |
| - name: Configuration for premium | |
| if: ${{ matrix.config == 'premium' }} | |
| run: | | |
| echo "BUILD_CMD=SWIFT_ACTIVE_COMPILATION_CONDITIONS='\$(inherited) ALWAYS_PREMIUM'" >> $GITHUB_ENV | |
| - name: Build | |
| run: set -o pipefail && env NSUnbufferedIO=YES xcodebuild clean build-for-testing -scheme 'AllTests' -destination "name=$DEVICE" -derivedDataPath $DERIVED_DATA_PATH ${{ env.BUILD_CMD }} | xcbeautify | |
| - name: Test | |
| run: set -o pipefail && env NSUnbufferedIO=YES xcodebuild test-without-building -xctestrun $(find . -type f -name "*.xctestrun") -destination "name=$DEVICE" -derivedDataPath $DERIVED_DATA_PATH | xcbeautify | |
| - name: Generate coverage report | |
| if: ${{ matrix.config == 'freemium' }} | |
| run: | | |
| xcresult_path=$(find $DERIVED_DATA_PATH/Logs/Test -name "*.xcresult" | head -n 1) | |
| bash Scripts/xccov-to-sonarqube-generic.sh "$xcresult_path" > sonarqube-generic-coverage.xml | |
| - name: SonarCloud Scan | |
| if: ${{ matrix.config == 'freemium' }} | |
| uses: SonarSource/sonarqube-scan-action@v6.0.0 | |
| env: | |
| SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | |
| continue-on-error: true |