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

test Github runner #337

Closed
wants to merge 10 commits into from
Closed
Show file tree
Hide file tree
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
6 changes: 3 additions & 3 deletions .github/workflows/release-cocoapods.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ on:
types: [ published ]

env:
DEVELOPER_DIR: /Applications/Xcode_14.2.app/Contents/Developer
DEVELOPER_DIR: /Applications/Xcode.app/Contents/Developer

jobs:
release-cocoapods:
runs-on: macos-12
runs-on: macos-latest

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Ruby & Bundle setup
uses: ruby/setup-ruby@v1
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/release-github.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@ on:
- '[0-9]+.[0-9]+.[0-9]+-[a-z]+[0-9]+'

env:
DEVELOPER_DIR: /Applications/Xcode_14.2.app/Contents/Developer
DEVELOPER_DIR: /Applications/Xcode.app/Contents/Developer

jobs:
test-and-release:
# Clone of main test workflow
runs-on: macos-12
runs-on: macos-latest

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Ruby & Bundle setup
uses: ruby/setup-ruby@v1
Expand Down Expand Up @@ -53,10 +53,10 @@ jobs:
bundle exec fastlane format_check

- name: Tests reports upload
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: failure()
with:
name: tests-reports
name: tests-reports-${{ matrix.runs-on }}
path: "fastlane/test_output"

# Publish additional steps to test job
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/test_0.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ on:
workflow_dispatch:

env:
DEVELOPER_DIR: /Applications/Xcode_14.2.app/Contents/Developer
DEVELOPER_DIR: /Applications/Xcode.app/Contents/Developer

jobs:
test:
runs-on: macos-12
runs-on: macos-latest

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Ruby & Bundle setup
uses: ruby/setup-ruby@v1
Expand Down Expand Up @@ -58,8 +58,8 @@ jobs:
bundle exec fastlane test_0

- name: Tests reports upload
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: failure()
with:
name: tests-reports
name: tests-reports-${{ matrix.runs-on }}
path: "fastlane/test_output"
10 changes: 5 additions & 5 deletions .github/workflows/test_1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ on:
workflow_dispatch:

env:
DEVELOPER_DIR: /Applications/Xcode_14.2.app/Contents/Developer
DEVELOPER_DIR: /Applications/Xcode.app/Contents/Developer

jobs:
test:
runs-on: macos-12
runs-on: macos-latest

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Ruby & Bundle setup
uses: ruby/setup-ruby@v1
Expand Down Expand Up @@ -58,8 +58,8 @@ jobs:
bundle exec fastlane test_1

- name: Tests reports upload
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: failure()
with:
name: tests-reports
name: tests-reports-${{ matrix.runs-on }}
path: "fastlane/test_output"
10 changes: 5 additions & 5 deletions .github/workflows/test_2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ on:
workflow_dispatch:

env:
DEVELOPER_DIR: /Applications/Xcode_14.2.app/Contents/Developer
DEVELOPER_DIR: /Applications/Xcode.app/Contents/Developer

jobs:
test:
runs-on: macos-12
runs-on: macos-latest

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Ruby & Bundle setup
uses: ruby/setup-ruby@v1
Expand Down Expand Up @@ -58,8 +58,8 @@ jobs:
bundle exec fastlane test_2

- name: Tests reports upload
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: failure()
with:
name: tests-reports
name: tests-reports-${{ matrix.runs-on }}
path: "fastlane/test_output"
Original file line number Diff line number Diff line change
Expand Up @@ -739,11 +739,8 @@ - (void)testInterstitialDidLoadForValidBid {
dependencyProvider.displaySizeInjector = displaySizeInjector;

WKWebView *mockWebView = OCMClassMock([WKWebView class]);
UIView *mockView = OCMClassMock([UIView class]);
CR_InterstitialViewController *interstitialVC =
[[CR_InterstitialViewController alloc] initWithWebView:mockWebView
view:mockView
interstitial:nil];
[[CR_InterstitialViewController alloc] initWithWebView:mockWebView view:nil interstitial:nil];
CRInterstitialAdUnit *adUnit1 = [[CRInterstitialAdUnit alloc] initWithAdUnitId:@"Yo"];
CRInterstitialAdUnit *adUnit2 = [[CRInterstitialAdUnit alloc] initWithAdUnitId:@"Yo"];
CRInterstitial *interstitial =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ - (void)testSetMediaContent_GivenPlaceholderAndMultipleSuccessfulCall_SetPlaceho
#pragma mark - Private

- (UIImage *)imageWithWidth:(CGFloat)width {
return [UIImage imageWithSize:(CGSize){width, 0}];
return [UIImage imageWithSize:(CGSize){width, 1}];
}

- (CRMediaView *)buildMediaView {
Expand Down
Loading