This repository has been archived by the owner on Jan 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #75 from justeat/add-publish-to-trunk-workflow
Add publish-to-trunk-workflow.yml
- Loading branch information
Showing
3 changed files
with
32 additions
and
5 deletions.
There are no files selected for viewing
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
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 }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 |
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