Skip to content

Commit a8da092

Browse files
committed
refactors release creation workflow, fixes #142, fixes #129
1 parent d7e760f commit a8da092

File tree

4 files changed

+16
-2
lines changed

4 files changed

+16
-2
lines changed

.github/workflows/build_and_test_full.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,14 @@ jobs:
1111
get_version:
1212
runs-on: ubuntu-20.04
1313
steps:
14+
- name: Download OpenTelemetry-Matlab source
15+
uses: actions/checkout@v3
16+
with:
17+
path: opentelemetry-matlab
1418
- name: Get Version
1519
id: getversion
1620
shell: bash
21+
working-directory: opentelemetry-matlab
1722
run: echo "latest_tag=$(sed -re 's/^v?([[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+)?.*/\1/' <<< $(git describe --tags --abbrev=0))" >> $GITHUB_OUTPUT
1823
build-and-run-tests-ubuntu:
1924
# Running on ubuntu-latest would use a glibc version that is incompatible when using the built mex files on a Debian 11

.github/workflows/build_and_test_simple.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,14 @@ jobs:
1212
get_version:
1313
runs-on: ubuntu-20.04
1414
steps:
15+
- name: Download OpenTelemetry-Matlab source
16+
uses: actions/checkout@v3
17+
with:
18+
path: opentelemetry-matlab
1519
- name: Get Version
1620
id: getversion
1721
shell: bash
22+
working-directory: opentelemetry-matlab
1823
run: echo "latest_tag=$(sed -re 's/^v?([[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+)?.*/\1/' <<< $(git describe --tags --abbrev=0))" >> $GITHUB_OUTPUT
1924
build-and-run-tests-ubuntu:
2025
# Running on ubuntu-latest would use a glibc version that is incompatible when using the built mex files on a Debian 11

test/tlogs.m

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,9 @@ function testBasic(testCase)
8686
versionidx = find(resourcekeys == "telemetry.sdk.version");
8787
verifyNotEmpty(testCase, versionidx);
8888
versionpattern = digitsPattern + "." + digitsPattern + "." + digitsPattern;
89-
verifyTrue(testCase, matches(results.resourceLogs.resource.attributes(versionidx).value.stringValue, versionpattern));
89+
version_actual = results.resourceLogs.resource.attributes(versionidx).value.stringValue;
90+
verifyTrue(testCase, matches(version_actual, versionpattern), ...
91+
"Invalid version string: " + version_actual);
9092

9193
nameidx = find(resourcekeys == "telemetry.sdk.name");
9294
verifyNotEmpty(testCase, nameidx);

test/ttrace.m

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,9 @@ function testBasic(testCase)
8989
versionidx = find(resourcekeys == "telemetry.sdk.version");
9090
verifyNotEmpty(testCase, versionidx);
9191
versionpattern = digitsPattern + "." + digitsPattern + "." + digitsPattern;
92-
verifyTrue(testCase, matches(results.resourceSpans.resource.attributes(versionidx).value.stringValue, versionpattern));
92+
version_actual = results.resourceSpans.resource.attributes(versionidx).value.stringValue;
93+
verifyTrue(testCase, matches(version_actual, versionpattern), ...
94+
"Invalid version string: " + version_actual);
9395

9496
nameidx = find(resourcekeys == "telemetry.sdk.name");
9597
verifyNotEmpty(testCase, nameidx);

0 commit comments

Comments
 (0)