forked from open-telemetry/opentelemetry-go
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add test runner to trigger bug from open-telemetry#1527
- Loading branch information
Showing
1 changed file
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: "Validation test for #1527" | ||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
jobs: | ||
compatibility-test: | ||
strategy: | ||
matrix: | ||
go-version: [1.15, 1.14] | ||
os: [macos-latest] | ||
# GitHub Actions does not support arm* architectures on default | ||
# runners. It is possible to acomplish this with a self-hosted runner | ||
# if we want to add this in the future: | ||
# https://docs.github.com/en/actions/hosting-your-own-runners/using-self-hosted-runners-in-a-workflow | ||
arch: ["386", amd64] | ||
exclude: | ||
# Not a supported Go OS/architecture. | ||
- os: macos-latest | ||
arch: "386" | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- name: Install Go | ||
uses: actions/setup-go@v2.1.3 | ||
with: | ||
go-version: ${{ matrix.go-version }} | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
- name: Setup Environment | ||
run: | | ||
echo "GOPATH=$(go env GOPATH)" >> $GITHUB_ENV | ||
echo "$(go env GOPATH)/bin" >> $GITHUB_PATH | ||
shell: bash | ||
- name: Module cache | ||
uses: actions/cache@v2.1.4 | ||
env: | ||
cache-name: go-mod-cache | ||
with: | ||
path: ~/go/pkg/mod | ||
key: ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('**/go.sum') }} | ||
- name: Run test | ||
env: | ||
GOARCH: ${{ matrix.arch }} | ||
run: "cd exporters/otlp/otlpgrpc && go test -v -count=1000 -run=TestNewExporter_collectorConnectionDiesThenReconnects" |