Skip to content

CIの全セットアップ #7

CIの全セットアップ

CIの全セットアップ #7

Workflow file for this run

name: PullRequest
on:
pull_request:
branches:
- main
workflow_dispatch:
permissions: write-all
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: macos-latest
timeout-minutes: 40
steps:
- uses: actions/checkout@v4
- name: archive
run: |
xcodebuild archive CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO -project ./ci-sample.xcodeproj -scheme ci-sample -configuration Debug -archivePath ./ci-sample_debug
- name: ipa
environment:

Check failure on line 25 in .github/workflows/pull_request.yml

View workflow run for this annotation

GitHub Actions / PullRequest

Invalid workflow file

The workflow is not valid. .github/workflows/pull_request.yml (Line: 25, Col: 9): Unexpected value 'environment'
name: CloudSigning
run: |
echo ${{ secrets.AUTHKEY_P8_BASE64 }} | base64 -d > $PWD/Authkey.p8
xcodebuild -exportArchive -archivePath ci-sample_debug.xcarchive -exportPath ./output -exportOptionsPlist ./ExportOptions.plist -allowProvisioningUpdates -authenticationKeyIssuerID ${{ secrets.ISSUER_ID }} -authenticationKeyID ${{ secrets.KEY_ID }} -authenticationKeyPath $PWD/Authkey.p8
test:
runs-on: macos-latest
timeout-minutes: 40
steps:
- uses: actions/checkout@v4
- name: Cache bundle directory
uses: actions/cache@v4
with:
path: vendor/bundle
key: ${{ runner.os }}-gem-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gem-
- name: bundler
run: |
bundle config path vendor/bundle
bundle install --jobs 4 --retry 3
- name: test
run: |
bundle exec fastlane test