Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable fork PRs CI to run codecov #270

Merged
merged 1 commit into from
May 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 21 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- master
tags:
- '[0-9]+\.[0-9]+\.[0-9]+'
pull_request:
pull_request_target: # forks don't have access to secrets if we use `pull_request`, which is required for codecov
branches:
- master

p4checo marked this conversation as resolved.
Show resolved Hide resolved
Expand All @@ -24,6 +24,10 @@ jobs:
env-details:
name: Environment details
runs-on: macos-14
if: |
github.event_name == 'push' ||
!github.event.pull_request.head.repo.fork ||
(github.event.pull_request.head.repo.fork && contains(github.event.pull_request.labels.*.name, 'run ci'))
steps:
- name: xcode version
run: xcodebuild -version -sdk
Expand All @@ -39,6 +43,10 @@ jobs:
build-test:
name: Build and Test
runs-on: macos-14
if: |
github.event_name == 'push' ||
!github.event.pull_request.head.repo.fork ||
(github.event.pull_request.head.repo.fork && contains(github.event.pull_request.labels.*.name, 'run ci'))
env:
WORKSPACE: Alicerce.xcworkspace
SCHEME: Alicerce
Expand Down Expand Up @@ -133,6 +141,10 @@ jobs:
swiftpm:
name: SwiftPM Build
runs-on: macos-14
if: |
github.event_name == 'push' ||
!github.event.pull_request.head.repo.fork ||
(github.event.pull_request.head.repo.fork && contains(github.event.pull_request.labels.*.name, 'run ci'))
env:
WORKSPACE: Alicerce.xcworkspace
SCHEME: "Alicerce (SPM)"
Expand Down Expand Up @@ -203,6 +215,10 @@ jobs:
cocoapods:
name: CocoaPods Verification
runs-on: macos-14
if: |
github.event_name == 'push' ||
!github.event.pull_request.head.repo.fork ||
(github.event.pull_request.head.repo.fork && contains(github.event.pull_request.labels.*.name, 'run ci'))
steps:
- name: git checkout
uses: actions/checkout@v3
Expand Down Expand Up @@ -232,6 +248,10 @@ jobs:
carthage:
name: Carthage Verification
runs-on: macos-14
if: |
github.event_name == 'push' ||
!github.event.pull_request.head.repo.fork ||
(github.event.pull_request.head.repo.fork && contains(github.event.pull_request.labels.*.name, 'run ci'))
env:
# Use Xcode 15.3 (latest) for Carthage to avoid iOS device/simulator version mismatches
DEVELOPER_DIR: "/Applications/Xcode_15.3.app/Contents/Developer"
Expand Down
Loading