Skip to content

Add GitHub Actions CI workflow for automated testing - #2

Merged
linroid merged 4 commits into
mainfrom
claude/add-github-actions-tests-G1hzp
Feb 7, 2026
Merged

linroid merged 4 commits into
mainfrom
claude/add-github-actions-tests-G1hzp

Conversation

@linroid

@linroid linroid commented Feb 7, 2026

Copy link
Copy Markdown
Owner

Summary

This PR introduces a GitHub Actions CI workflow to automatically run tests on every push to main and on all pull requests targeting main.

Key Changes

  • Added .github/workflows/tests.yml with two parallel test jobs:
    • JVM Tests: Runs Kotlin/JVM unit tests for library:core and library:ktor modules
    • Android Tests: Runs Android unit tests for the same modules
  • Configured workflow to trigger on pushes to main and pull requests against main
  • Added concurrency controls to cancel in-progress runs when new commits are pushed
  • Configured test report artifacts to be uploaded on test failures for debugging

Implementation Details

  • Uses Java 17 (Temurin distribution) for consistent test environment
  • Leverages Gradle for test execution with the official gradle/actions/setup-gradle action
  • Test reports are automatically uploaded as artifacts when tests fail, making it easy to investigate failures without local reproduction
  • Concurrency group prevents duplicate workflow runs for the same ref, improving CI efficiency

https://claude.ai/code/session_017hZnvyG5y3fQaXakZWXRWZ

Adds CI pipeline with two jobs:
- JVM tests: runs :library:core:jvmTest and :library:ktor:jvmTest
- Android unit tests: runs testDebugUnitTest for both library modules

Uses JDK 17 (required by AGP 9.0.0), Gradle caching via gradle/actions,
and uploads test reports as artifacts on failure.

https://claude.ai/code/session_017hZnvyG5y3fQaXakZWXRWZ
Run `jvmTest` and `testDebugUnitTest` at the root level so new library
modules are automatically picked up. Use glob patterns for artifact
upload paths.

https://claude.ai/code/session_017hZnvyG5y3fQaXakZWXRWZ
@linroid

linroid commented Feb 7, 2026

Copy link
Copy Markdown
Owner Author

@claude We should run test for all supported platforms

- Each test job uploads JUnit XML results as artifacts (always, not just
  on failure)
- A final publish-results job collects all artifacts and publishes a
  combined test summary on PRs via check runs
- Added required permissions (checks: write, pull-requests: write)

https://claude.ai/code/session_017hZnvyG5y3fQaXakZWXRWZ
@github-actions

github-actions Bot commented Feb 7, 2026

Copy link
Copy Markdown
Contributor

Test Results

318 tests   318 ✅  0s ⏱️
 36 suites    0 💤
 36 files      0 ❌

Results for commit 9e92ebe.

@linroid
linroid merged commit fa0075f into main Feb 7, 2026
6 checks passed
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.

2 participants