Skip to content

Commit 34db4b9

Browse files
robertlaurinfbogsanyahayworth
authored
fix: add otlp grpc/http to ci (#1267)
* fix: add otlp grpc/http to ci * fix: add otlp-common to ci * fix: skip windows for otlp-grpc * ci: do not test otlp exporters on jruby (#1327) Co-authored-by: Francis Bogsanyi <[email protected]> Co-authored-by: Andrew Hayworth <[email protected]>
1 parent 321d1d4 commit 34db4b9

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

.github/workflows/ci.yml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,9 @@ jobs:
6464
gem:
6565
- opentelemetry-exporter-jaeger
6666
- opentelemetry-exporter-otlp
67+
- opentelemetry-exporter-otlp-common
68+
- opentelemetry-exporter-otlp-grpc
69+
- opentelemetry-exporter-otlp-http
6770
- opentelemetry-exporter-zipkin
6871
os:
6972
- ubuntu-latest
@@ -73,6 +76,8 @@ jobs:
7376
# Doesn't build on macos
7477
- os: macos-latest
7578
gem: opentelemetry-exporter-jaeger
79+
- os: windows-latest
80+
gem: opentelemetry-exporter-otlp-grpc
7681
name: ${{ matrix.gem }} / ${{ matrix.os }}
7782
runs-on: ${{ matrix.os }}
7883
steps:
@@ -97,8 +102,19 @@ jobs:
97102
yard: true
98103
rubocop: true
99104
build: true
105+
- name: "JRuby Filter"
106+
id: jruby_skip
107+
shell: bash
108+
run: |
109+
echo "::set-output name=skip::false"
110+
[[ "${{ matrix.gem }}" == "opentelemetry-exporter-otlp" ]] && echo "::set-output name=skip::true"
111+
[[ "${{ matrix.gem }}" == "opentelemetry-exporter-otlp-common" ]] && echo "::set-output name=skip::true"
112+
[[ "${{ matrix.gem }}" == "opentelemetry-exporter-otlp-http" ]] && echo "::set-output name=skip::true"
113+
[[ "${{ matrix.gem }}" == "opentelemetry-exporter-otlp-grpc" ]] && echo "::set-output name=skip::true"
114+
# This is essentially a bash script getting evaluated, so we need to return true or the whole job fails.
115+
true
100116
- name: "Test JRuby"
101-
if: "${{ matrix.os == 'ubuntu-latest' }}"
117+
if: "${{ matrix.os == 'ubuntu-latest' && steps.jruby_skip.outputs.skip == 'false' }}"
102118
uses: ./.github/actions/test_gem
103119
with:
104120
gem: "${{ matrix.gem }}"

0 commit comments

Comments
 (0)