Skip to content

Commit e3cedb0

Browse files
authored
Improve github actions logging with grouping (#503)
1 parent dba8c00 commit e3cedb0

25 files changed

Lines changed: 91 additions & 50 deletions

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
.vscode-test/
44
.vscode-test-docker/
55
.worktrees/
6-
artifacts/
6+
artifacts*/
77
coverage/
88
dist/
99
docker/.rssw/

CHANGELOG.md

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
1-
# [1.4.9](https://github.com/kenherring/ablunit-test-runner/releases/tag/1.4.9) - 2026-03-19 (pre-release)
2-
1+
# [1.4.11](https://github.com/kenherring/ablunit-test-runner/releases/tag/1.4.11) - 2026-03-21 (pre-release)
2+
3+
* Improve github actions logging with grouping (#503)
4+
* Bump actions/download-artifact from 5 to 8 (#506)
5+
* Bump actions/upload-artifact from 4 to 7 (#505)
6+
* Bump SonarSource/sonarqube-scan-action from 6.0.0 to 7.0.0 (#507)
7+
* Bump esbuild from 0.27.3 to 0.27.4 (#512)
8+
* Bump typescript-eslint from 8.57.0 to 8.57.1 (#513)
9+
* Bump actions/checkout from 4 to 6 (#509)
10+
* Bump actions/setup-node from 4 to 6 (#504)
311
* Configure dependabot for github actions ecosystem (#475)
12+
* Bump flatted from 3.3.3 to 3.4.2 in the npm_and_yarn group across 1 directory (#502)
13+
* Bump undici from 7.22.0 to 7.24.4 in the npm_and_yarn group across 1 directory (#501)
414
* Bump @tootallnate/once from 1.1.2 to removed in /dummy-ext in the npm_and_yarn group across 1 directory (#495)
515
* Bump PCT from v230 to v231 (#476)
616
* Add OpenEdge 12.8.11 test target (#484)
@@ -17,7 +27,7 @@
1727
* Bump esbuild from 0.27.0 to 0.27.1 (#457)
1828
* Bump jws from 3.2.2 to 3.2.3 in the npm_and_yarn group across 1 directory (#455)
1929

20-
**Full Changelog**: [1.4.4...1.4.9](https://github.com/kenherring/ablunit-test-runner/compare/1.4.7...1.4.9)
30+
**Full Changelog**: [1.4.4...1.4.11](https://github.com/kenherring/ablunit-test-runner/compare/1.4.9...1.4.11)
2131

2232
# [1.4.4](https://github.com/kenherring/ablunit-test-runner/releases/tag/1.4.4) - 2025-11-26 (pre-release)
2333

docker/run_tests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ initialize () {
9999
exit 1
100100
fi
101101

102-
if ${CIRCLECI:-false} && [ -z "$ABLUNIT_TEST_RUNNER_OE_VERSION" ]; then
102+
if ${CI:-false} && [ -z "$ABLUNIT_TEST_RUNNER_OE_VERSION" ]; then
103103
cat "$DLC/version"
104104
ABLUNIT_TEST_RUNNER_OE_VERSION=$(awk '{print $3}' < "$DLC/version")
105105
if [[ "$ABLUNIT_TEST_RUNNER_OE_VERSION" =~ ^[0-9]+\.[0-9]+$ ]]; then

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "ablunit-test-runner",
33
"displayName": "ABLUnit Test Runner",
44
"description": "OpenEdge ABLUnit test runner for VSCode",
5-
"version": "1.4.9",
5+
"version": "1.4.11",
66
"engineStrict": true,
77
"galleryBanner": {
88
"color": "#007ACC",

scripts/bump_version.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ main () {
2020
return 0
2121
fi
2222

23-
if ${CIRCLECI:-}; then
23+
if ${CI:-false}; then
2424
if ! git config --get user.email &>/dev/null; then
2525
LAST_COMMITTER_EMAIL=$(git log -1 --pretty='%ae')
2626
git config user.email "${LAST_COMMITTER_EMAIL:-noreply@ablunit-test-runner.kenherring.com}"

scripts/common.sh

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,7 @@
22
set -eou pipefail
33

44
common_init () {
5-
echo "GITHUB_REF_TYPE=${GITHUB_REF_TYPE:-}"
6-
echo "GITHUB_REF_NAME=${GITHUB_REF_NAME:-}"
7-
echo "GITHUB_HEAD_REF=${GITHUB_HEAD_REF:-}"
8-
echo "GITHUB_REF=${GITHUB_REF:-}"
9-
10-
# GITHUB_EVENT_NAME=pull_request
115
GITHUB_REF_TYPE="${GITHUB_REF_TYPE:-branch}"
12-
CIRCLECI=${GITHUB_ACTIONS:-false}
136
if [ "$GITHUB_REF_TYPE" = "tag" ]; then
147
CIRCLE_BRANCH=
158
CIRCLE_TAG="${GITHUB_REF_NAME:-}"
@@ -22,11 +15,7 @@ common_init () {
2215
[ -z "${CIRCLE_TAG:-}" ] && [ -z "${CIRCLE_BRANCH:-}" ] && CIRCLE_TAG=$(git rev-parse --abbrev-ref HEAD)
2316
[ -z "${CIRCLE_TAG:-}" ] && [ -z "${CIRCLE_BRANCH:-}" ] && CIRCLE_BRANCH=$(git branch --show-current)
2417

25-
echo "CIRCLE_TAG=${CIRCLE_TAG:-}"
26-
echo "CIRCLE_BRANCH=${CIRCLE_BRANCH:-}"
27-
echo "CIRCLECI=${CIRCLECI:-}"
28-
29-
export CIRCLECI CIRCLE_TAG CIRCLE_BRANCH
18+
export CIRCLE_TAG CIRCLE_BRANCH
3019
}
3120

3221
log_it () {
@@ -37,6 +26,19 @@ log_error () {
3726
echo "[$(date +%Y-%m-%d:%H:%M:%S) $0 ${FUNCNAME[1]}] ERROR:" "$@" >&2
3827
}
3928

29+
log_group_start () {
30+
local GROUP_NAME=$1
31+
if ${CI:-false}; then
32+
echo "::group::$GROUP_NAME"
33+
fi
34+
}
35+
36+
log_group_end () {
37+
if ${CI:-false}; then
38+
echo "::endgroup::"
39+
fi
40+
}
41+
4042
jq () {
4143
if command -v jq >/dev/null 2>&1; then
4244
command jq "$@"

scripts/create_release.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ main () {
3535
if $PRERELEASE; then
3636
ARGS+=(--prerelease)
3737
ARGS+=(--title "$PACKAGE_VERSION (prerelease)")
38-
if ! ${CIRCLECI:-false}; then
38+
if ! ${CI:-false}; then
3939
ARGS+=(--draft)
4040
fi
4141
else

scripts/install_and_run.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,10 @@ initialize() {
77
echo "[$(date +%Y-%m-%d:%H:%M:%S) $0 ${FUNCNAME[0]}] pwd=$(pwd)"
88
local VSIX_COUNT
99

10-
CIRCLECI=${CIRCLECI:-false}
1110
# PACKAGE_VERSION=$(node -p "require('./package.json').version")
1211
export DONT_PROMPT_WSL_INSTALL=true
1312

14-
$CIRCLECI || ./scripts/package.sh
13+
${CI:-false} || ./scripts/package.sh
1514

1615
echo "vsix files packaged:"
1716
find . -name 'ablunit-test-runner-*.vsix'

scripts/npm_pretest.sh

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ initialize () {
1616
if ! command -v ant &>/dev/null; then
1717
PATH=$PATH:$DLC/ant/bin
1818
fi
19-
CIRCLECI=${CIRCLECI:-false}
20-
if $CIRCLECI; then
19+
if ${CI:-false}; then
2120
HOME=/github/home
2221
fi
2322
NO_BUILD=${NO_BUILD:-false}
@@ -52,7 +51,7 @@ initialize () {
5251
exit 1
5352
fi
5453

55-
export PATH CIRCLECI ABLUNIT_TEST_RUNNER_OE_VERSION ABLUNIT_TEST_RUNNER_VSCODE_VERSION
54+
export PATH ABLUNIT_TEST_RUNNER_OE_VERSION ABLUNIT_TEST_RUNNER_VSCODE_VERSION
5655

5756
if [ -d artifacts ]; then
5857
rm -rf artifacts/*
@@ -175,8 +174,8 @@ package () {
175174
else
176175
PACKAGE_OUT_OF_DATE=true
177176
fi
178-
log_it "CIRCLECI=$CIRCLECI PACKAGE_OUT_OF_DATE=$PACKAGE_OUT_OF_DATE VSIX_COUNT=$VSIX_COUNT"
179-
if $PACKAGE_OUT_OF_DATE || $CIRCLECI || [ "$VSIX_COUNT" = "0" ]; then
177+
log_it "CI=${CI:-} PACKAGE_OUT_OF_DATE=$PACKAGE_OUT_OF_DATE VSIX_COUNT=$VSIX_COUNT"
178+
if $PACKAGE_OUT_OF_DATE || $CI || [ "$VSIX_COUNT" = "0" ]; then
180179
./scripts/package.sh
181180
fi
182181

0 commit comments

Comments
 (0)