Update dependency fastlane to v2.223.0 #289
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
name: XCUITest | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
schedule: | |
- cron: '0 8 */4 * *' | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 40 | |
strategy: | |
fail-fast: false | |
matrix: | |
xcode: [ '15.1', 'latest' ] | |
os: [ macos-latest ] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: bundler | |
run: | | |
bundle config path vendor/bundle | |
bundle install --jobs 4 --retry 3 | |
- name: set Xcode Version ${{ matrix.xcode }} | |
run: | | |
if [ "${{ matrix.xcode }}" = 'latest' ]; then | |
# beta版があるかのチェック | |
export XCODE_BETA_APP=`ls /Applications/ | grep Xcode_ | awk 'match($0, /.*beta.*/) {print substr($0, RSTART, RLENGTH)}' | sort -n | tail -1` | |
# XCODE_APP変数へのセット | |
if [ "${XCODE_BETA_APP}" = "" ]; then | |
export XCODE_APP=`ls /Applications/ | grep Xcode_ | awk '$0 ~ /.*\.app/' | sort -n | tail -1` | |
else | |
export XCODE_APP="${XCODE_BETA_APP}" | |
fi | |
else | |
export XCODE_APP="Xcode_${{ matrix.xcode }}.app" | |
fi | |
echo "set: ${XCODE_APP}" | |
echo "XCODE_VERSION=${XCODE_APP}" >> $GITHUB_ENV | |
- name: run test with ${{ matrix.xcode }} | |
run: | | |
echo "set: ${XCODE_VERSION}" | |
DEVELOPER_DIR="/Applications/${XCODE_VERSION}/Contents/Developer" bundle exec fastlane test |