-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
41 additions
and
23 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,30 @@ | ||
|
||
# Can only run on push events, not pull requests. | ||
# PRs on github generate weird branch names that semantic-release does not support. | ||
on: [push] | ||
|
||
concurrency: # cancel previous workflow run if one exists. | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
|
||
jobs: | ||
deployment: | ||
runs-on: macos-13 # because cocoapods is already installed on these machines | ||
permissions: | ||
contents: write # to set permissions for semantic-release dry-run to pass | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: setup git user to run semantic-release | ||
run: | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "Example User" | ||
- uses: ./.github/actions/setup-semantic-release | ||
|
||
- name: Run semantic-release in dry run | ||
run: unset GITHUB_ACTIONS && npx semantic-release --dry-run --no-ci --branches "${{ github.ref_name }},main" | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
on: [push] | ||
on: [pull_request] | ||
|
||
concurrency: # cancel previous workflow run if one exists. | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
|
@@ -29,23 +29,10 @@ jobs: | |
|
||
- run: task test | ||
- run: task coverage | ||
|
||
deployment: | ||
runs-on: macos-13 # because cocoapods is already installed on these machines | ||
permissions: | ||
contents: write # to set permissions for semantic-release dry-run to pass | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: setup git user to run semantic-release | ||
run: | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "Example User" | ||
- uses: ./.github/actions/setup-semantic-release | ||
|
||
- name: Run semantic-release in dry run | ||
run: unset GITHUB_ACTIONS && npx semantic-release --dry-run --no-ci --branches "${{ github.ref_name }},main" | ||
- name: Upload coverage for analysis | ||
uses: coverallsapp/github-action@v2 | ||
with: | ||
file: .build/lcov.info | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }} | ||
# try and speedup the action by homebrew not having to do more then it needs when installing the coveralls tool | ||
HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK: true |
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