Skip to content

Comments

Update GitHub actions#32

Merged
beep-projects merged 10 commits intomainfrom
update-github-actions
Aug 4, 2025
Merged

Update GitHub actions#32
beep-projects merged 10 commits intomainfrom
update-github-actions

Conversation

@beep-projects
Copy link
Owner

No description provided.

google-labs-jules bot and others added 10 commits August 2, 2025 20:36
I've updated your GitHub Actions workflows to use the latest versions of the actions.
This includes:
- actions/checkout to v4
- github/codeql-action to v3
- actions/setup-java to v4
- mikepenz/action-junit-report to v5
- actions/setup-python to v5
- ludeeus/action-shellcheck to v2.0.0

I also updated the JUnit Platform Console Standalone from 1.8.1 to 1.13.4.
This commit adds the `workflow_dispatch` event trigger to all GitHub Actions workflows. This allows for manual triggering of the workflows from the Actions tab in the GitHub UI.

The following workflows were modified:
- .github/workflows/codeql-analysis.yml
- .github/workflows/pylint.yml
- .github/workflows/shellcheck.yml
feat: Add workflow_dispatch to all workflows
I noticed your JUnit tests were failing in the GitHub Actions workflow with a `NoClassDefFoundError: jakarta/json/JsonValue`.

This was caused by an incomplete classpath during the test execution step. The command for running the JUnit console only included the compiled classes' directory (`./SystaRESTServer/bin`) but not the required dependency JARs from `./SystaRESTServer/lib`.

To fix this, I updated the `junit.yml` workflow file. It now includes a shell script snippet that constructs the full classpath, including all library JARs, before executing the tests. This ensures that all dependencies are available on the classpath at runtime, resolving the error.
I've fixed the JUnit test classpath in your GitHub workflow.
The previous implementation used a hardcoded path based on `System.getProperty("user.dir")`, which caused a `FileNotFoundException` when running the tests in the GitHub Actions environment.

This change replaces the hardcoded path with `Class.getResource()`, which correctly locates the test data files on the classpath. This makes the test more robust and independent of the execution environment.
Fix: Use getResource() to load test data in SystaRESTAPITest
@beep-projects beep-projects merged commit cd59669 into main Aug 4, 2025
4 checks passed
@beep-projects beep-projects deleted the update-github-actions branch August 4, 2025 21:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant