Skip to content
This repository has been archived by the owner on Jan 5, 2024. It is now read-only.

Commit

Permalink
Merge pull request #75 from justeat/add-publish-to-trunk-workflow
Browse files Browse the repository at this point in the history
Add publish-to-trunk-workflow.yml
  • Loading branch information
albertodebortoli authored May 16, 2022
2 parents ce907e1 + 63a8ab4 commit dc34bc7
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 5 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/publish-to-trunk-workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Publish to Trunk
on:
push:
tags:
- '*'
jobs:
build:
runs-on: macOS-latest
steps:
- uses: actions/checkout@v1
- name: Install Cocoapods
run: gem install cocoapods
- name: Deploy to Cocoapods
run: |
set -eo pipefail
export LIB_VERSION=$(git describe --tags `git rev-list --tags --max-count=1`)
pod lib lint --allow-warnings
pod trunk push --allow-warnings
env:
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }}
15 changes: 11 additions & 4 deletions .github/workflows/pull-request-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Pull Request Workflow
on: [pull_request]
jobs:
run-tests:
runs-on: macos-11
runs-on: macOS-latest
timeout-minutes: 15
steps:
- name: Cancel previous jobs
Expand All @@ -12,20 +12,27 @@ jobs:
- name: Git checkout
uses: actions/[email protected]
with:
fetch-depth: 0
ref: ${{ github.ref }}
- name: Setup Xcode
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '13.2.1'
xcode-version: latest-stable
- name: Setup ruby and bundler dependencies
uses: ruby/[email protected]
with:
bundler-cache: true
- name: Run pod install
run: bundle exec pod install --project-directory=Example
run: |
set -eo pipefail
export LIB_VERSION=$(git describe --tags `git rev-list --tags --max-count=1`)
bundle exec pod install --project-directory=Example
- name: Run tests (JustTweak)
run: bundle exec fastlane unit_tests_just_tweak device:'iPhone 11'
- name: Run tests (TweakAccessorGenerator)
run: bundle exec fastlane unit_tests_tweak_accessor_generator
- name: Validate lib
run: bundle exec pod lib lint --allow-warnings
run: |
set -eo pipefail
export LIB_VERSION=$(git describe --tags `git rev-list --tags --max-count=1`)
bundle exec pod lib lint --allow-warnings
2 changes: 1 addition & 1 deletion JustTweak.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'JustTweak'
s.version = '10.0.3'
s.version = ENV['LIB_VERSION']
s.summary = 'A framework for feature flagging, locally and remotely configure and A/B test iOS apps.'
s.description = <<-DESC
JustTweak is a framework for feature flagging, locally and remotely configure and A/B test iOS apps.
Expand Down

0 comments on commit dc34bc7

Please sign in to comment.