Skip to content

Rework the client registration workflow and client id #96

Rework the client registration workflow and client id

Rework the client registration workflow and client id #96

Workflow file for this run

---
name: Run Pull Request CI Verification
on:
pull_request:
branches:
- main
jobs:
tests:
runs-on: ubuntu-latest
container:
image: registry.suse.com/bci/golang:1.21-openssl
steps:
- name: Checkout PR sources
uses: actions/checkout@v4
with:
path: telemetry-server
- name: Select Telemetry Repo Branch
id: telemetry-repo-branch
run: |
branch="$(echo "${{ github.event.pull_request.body }}" |
grep -o "^[[:space:]]*TelemetryRepoBranch: .*$" |
cut -d":" -f2 | tr -d '[[:space:]]' || true)"
[[ -n "${branch}" ]] || branch=main
echo "TelemetryRepoBranch=${branch}" >> "$GITHUB_OUTPUT"
- name: Show TelemetryRepoBranch
run: |
echo "TelemetryRepoBranch=${{ steps.telemetry-repo-branch.outputs.TelemetryRepoBranch }}"
- name: Checkout SUSE/telemetry companion sources
uses: actions/checkout@v4
with:
repository: SUSE/telemetry
path: telemetry
ref: "${{ steps.telemetry-repo-branch.outputs.TelemetryRepoBranch }}"
- name: Run tests in verbose mode
run: cd telemetry-server && make test-verbose