Skip to content

Commit

Permalink
Switch workflows to run on main
Browse files Browse the repository at this point in the history
  • Loading branch information
fermoya committed Mar 30, 2022
1 parent b2d2e54 commit 25adcd5
Show file tree
Hide file tree
Showing 6 changed files with 40 additions and 9 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/build-legacy
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# This workflow runs xcodebuild on every target to make sure it compiles

# https://github.com/actions/virtual-environments/issues/551#issuecomment-974816804
name: Build iOS 12

on:
push:
branches: [ legacy-projects ]

workflow_dispatch:

jobs:
build:
name: Build all supported targets
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
with:
ref: 'legacy-projects'

- name: Copy iOS 12.4 simruntime
run: |
sudo mkdir -p /Library/Developer/CoreSimulator/Profiles/Runtimes
sudo ln -s /Applications/Xcode_10.3.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/iOS.simruntime /Library/Developer/CoreSimulator/Profiles/Runtimes/iOS\ 12.4.simruntime

- name: Run script
env:
DESTINATION: 'platform=iOS Simulator,name=iPhone 8,OS=12.4'
run: |
ls /Library/Developer/CoreSimulator/Profiles/Runtimes
./scripts/build_platforms.sh
2 changes: 1 addition & 1 deletion .github/workflows/build-platforms.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ name: Xcodebuild

on:
pull_request:
branches: [ master, develop ]
branches: [ main ]

workflow_dispatch:

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/rebase-legacy-branch.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# This workflow will rebase legacy-projects branch on new pushes to master
# This workflow will rebase legacy-projects branch on new pushes to main

name: Rebase branch legacy-projects

on:
push:
branches: [ develop ]
branches: [ main ]

workflow_dispatch:

Expand All @@ -22,5 +22,5 @@ jobs:
USER_NAME: fermoya
USER_EMAIL: [email protected]
OUTDATED_BRANCH: legacy-projects
BASE_BRANCH: develop
BASE_BRANCH: main
run: ./scripts/rebase.sh
6 changes: 3 additions & 3 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
# This workflow will trigger on pull-request to master or develop.
# This workflow will trigger on pull-request to main
# It will run the Swift Package tests, output the code coverage and upload it to Codecov.

name: Unit Tests

on:
# Trigger the workflow on push pull request or manually
pull_request:
branches: [ master, develop ]
branches: [ main ]

push:
branches: [ master, develop ]
branches: [ main ]

workflow_dispatch:

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# SwiftUIPager

![CI](https://github.com/fermoya/SwiftUIPager/workflows/Unit%20Tests/badge.svg)
[![codecov](https://codecov.io/gh/fermoya/SwiftUIPager/branch/develop/graph/badge.svg)](https://codecov.io/gh/fermoya/SwiftUIPager)
[![codecov](https://codecov.io/gh/fermoya/SwiftUIPager/branch/main/graph/badge.svg)](https://codecov.io/gh/fermoya/SwiftUIPager)
[![Swift Package Manager compatible](https://img.shields.io/badge/Swift%20Package%20Manager-compatible-brightgreen.svg)](https://github.com/apple/swift-package-manager)
[![Cocoapods](https://img.shields.io/cocoapods/v/SwiftUIPager.svg)](https://cocoapods.org/pods/SwiftUIPager)
[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)
Expand Down
2 changes: 1 addition & 1 deletion SwiftUIPager.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ Pod::Spec.new do |s|
s.source = { :git => "https://github.com/fermoya/SwiftUIPager.git", :tag => "#{s.version}" }
s.source_files = "Sources/SwiftUIPager/**/*.swift"

s.documentation_url = "https://github.com/fermoya/SwiftUIPager/blob/master/README.md"
s.documentation_url = "https://github.com/fermoya/SwiftUIPager/blob/main/README.md"

end

0 comments on commit 25adcd5

Please sign in to comment.