Rework the client registration workflow and client id #96
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
--- | |
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 |