Skip to content

release 6.1.2

release 6.1.2 #66

Workflow file for this run

name: Test & Release on GitHub
on:
push:
tags:
- '[0-9]+.[0-9]+.[0-9]+'
- '[0-9]+.[0-9]+.[0-9]+-[a-z]+[0-9]+'
env:
DEVELOPER_DIR: /Applications/Xcode.app/Contents/Developer
jobs:
test-and-release:
# Clone of main test workflow
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Ruby & Bundle setup
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
bundler-cache: true
- name: Cocoapods cache
uses: actions/cache@v3
with:
path: Pods
key: ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock') }}
restore-keys: |
${{ runner.os }}-pods-
- name: Cocoapods install
run: |
bundle exec fastlane run cocoapods
- name: Setup Java 11
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '11'
- name: WireMock setup
run: |
curl https://repo1.maven.org/maven2/com/github/tomakehurst/wiremock-jre8-standalone/2.27.0/wiremock-jre8-standalone-2.27.0.jar -o wiremock.jar -s
bundle exec iostrust add ./wiremock/cert/wiremock.crt
java -jar wiremock.jar --https-port 9099 --root-dir wiremock --https-keystore wiremock/cert/wiremock.jks --keystore-password password --verbose --global-response-templating &
- name: Format check
run: |
bundle exec fastlane format_check
- name: Tests reports upload
uses: actions/upload-artifact@v4
if: failure()
with:
name: tests-reports-${{ matrix.runs-on }}
path: "fastlane/test_output"
# Publish additional steps to test job
- name: Archive
run: |
./scripts/archive.sh
- name: Release
run: |
bundle exec fastlane release_github ref:${{ github.ref }}
env:
FL_GITHUB_RELEASE_API_BEARER: ${{ secrets.GITHUB_TOKEN }}