Skip to content

Commit

Permalink
[chore] update dir of compliance tests (#13008)
Browse files Browse the repository at this point in the history
This prevents the compliance repo from being cloned in the same directory as the contrib repo, causing issues when trying to move to using go workspaces.
  • Loading branch information
Alex Boten authored Aug 8, 2022
1 parent a27b57d commit 828a2b8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/prometheus-compliance-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ jobs:
steps:
- name: Checkout Repo
uses: actions/checkout@v3
with:
path: opentelemetry-collector-contrib
- name: Setup Go
uses: actions/setup-go@v3
with:
Expand All @@ -31,14 +33,15 @@ jobs:
~/.cache/go-build
key: prometheus-${{ runner.os }}-go-${{ hashFiles('**/go.mod', '**/go.sum') }}
- run: make otelcontribcol
working-directory: opentelemetry-collector-contrib
- name: Checkout compliance repo
uses: actions/checkout@v3
with:
repository: prometheus/compliance
path: compliance
ref: f0482884578bac67b053e3eaa1ca7f783d146557
- name: Copy binary to compliance directory
run: mkdir compliance/remote_write_sender/bin && cp ./bin/otelcontribcol_linux_amd64 compliance/remote_write_sender/bin/otelcol_linux_amd64
run: mkdir compliance/remote_write_sender/bin && cp opentelemetry-collector-contrib/bin/otelcontribcol_linux_amd64 compliance/remote_write_sender/bin/otelcol_linux_amd64
- name: Run compliance tests
run: go test --tags=compliance -run "TestRemoteWrite/otel/.+" -v ./
working-directory: compliance/remote_write_sender

0 comments on commit 828a2b8

Please sign in to comment.