Skip to content

Commit

Permalink
Move shell param
Browse files Browse the repository at this point in the history
  • Loading branch information
Widcket committed Aug 15, 2023
1 parent 517c0c8 commit 2d62a99
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/actions/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,42 +12,50 @@ inputs:
required: true
runs:
using: composite
shell: bash -euo pipefail
steps:
- name: Set Ruby version
run: ruby -e 'puts RUBY_VERSION' | tee .ruby-version
shell: bash -euo pipefail
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
cache-version: 1
shell: bash -euo pipefail
- name: Install Carthage
run: brew install carthage
shell: bash -euo pipefail
- name: Install Swiftlint
run: brew install swiftlint
shell: bash -euo pipefail
- name: Setup Xcode
uses: mxcl/xcodebuild@v2
with:
xcode: ${{ inputs.xcode }}
action: none
shell: bash -euo pipefail
- name: Save Xcode version
run: xcodebuild -version | tee .xcode-version
shell: bash -euo pipefail
- id: restore-carthage-cache
name: Restore Carthage cache
uses: actions/cache/restore@v3
with:
path: Carthage
key: v1-carthage-${{ hashFiles('.xcode-version') }}-${{ hashFiles('Cartfile.resolved') }}
shell: bash -euo pipefail
- name: Install dependencies
if: steps.restore-carthage-cache.outputs.cache-hit != 'true'
run: carthage bootstrap --platform ${{ inputs.platform }} --no-use-binaries --cache-builds
shell: bash -euo pipefail
- name: Save Carthage cache
id: save-carthage-cache
uses: actions/cache/save@v3
if: steps.restore-carthage-cache.outputs.cache-hit != 'true'
with:
path: Carthage
key: v1-carthage-${{ hashFiles('.xcode-version') }}-${{ hashFiles('Cartfile.resolved') }}
shell: bash -euo pipefail
- name: Run tests
uses: mxcl/xcodebuild@v2
with:
Expand All @@ -56,3 +64,4 @@ runs:
scheme: ${{ inputs.scheme }}
code-coverage: true
configuration: release
shell: bash -euo pipefail

0 comments on commit 2d62a99

Please sign in to comment.