Skip to content

Commit

Permalink
Run platform builds & tests in parallel
Browse files Browse the repository at this point in the history
  • Loading branch information
lunij committed Feb 10, 2023
1 parent af98064 commit 653bd1d
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/BuildAndTest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,8 @@ name: Build and Test
on: [push, pull_request, workflow_dispatch]

jobs:
build:

macOS:
runs-on: macOS-latest

steps:
- uses: actions/checkout@v2
- name: Build and Test for macOS
Expand All @@ -17,12 +15,22 @@ jobs:
chmod +x codecov
xcrun llvm-cov export -ignore-filename-regex="pb\.swift|grpc\.swift" -format="lcov" .build/debug/opentelemetry-swiftPackageTests.xctest/Contents/MacOS/opentelemetry-swiftPackageTests -instr-profile .build/debug/codecov/default.profdata > .build/debug/codecov/coverage_report.lcov
./codecov -f .build/debug/codecov/coverage_report.lcov
iOS:
runs-on: macOS-latest
steps:
- uses: actions/checkout@v2
- name: Install Homebrew kegs
run: make setup_brew
- name: Build for iOS
run: make build_for_testing_ios
- name: Test for iOS
run: make test_without_building_ios
watchOS:
runs-on: macOS-latest
steps:
- uses: actions/checkout@v2
- name: Install Homebrew kegs
run: make setup_brew
- name: Build for watchOS
run: make build_for_testing_watchos
- name: Test for watchOS
Expand Down

0 comments on commit 653bd1d

Please sign in to comment.