forked from open-telemetry/opentelemetry-swift
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (35 loc) · 1.25 KB
/
BuildAndTest.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Build and Test
on: [push, pull_request, workflow_dispatch]
jobs:
macOS:
runs-on: macOS-latest
steps:
- uses: actions/checkout@v2
- name: Build and Test for macOS
run: swift test --enable-code-coverage
- name: Upload Code coverage
run: |
curl -Os https://uploader.codecov.io/latest/macos/codecov
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
run: make test_without_building_watchos