Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add CI with GitHub Actions #31

Merged
merged 1 commit into from
Jan 11, 2024
Merged

Add CI with GitHub Actions #31

merged 1 commit into from
Jan 11, 2024

Conversation

rtyley
Copy link
Member

@rtyley rtyley commented Jan 11, 2024

Currently, running sbt test on the main branch fails, and so we see that here with this PR in the CI results!

Having CI is obviously good in general, but also this should help with evaluating #28 (which appears to actually fix the tests, at least locally) and #30, which adds automated release support with gha-scala-library-release-workflow.

I think it would be best to merge this PR first, then rebase #28 on top to see it fix the tests.

@rtyley rtyley force-pushed the add-github-actions-ci branch from 5f59153 to 8e1e216 Compare January 11, 2024 11:43
Currently, running 'sbt test' fails, and so CI will reflect that.
@rtyley rtyley force-pushed the add-github-actions-ci branch from 8e1e216 to 0a21d64 Compare January 11, 2024 11:43
cache: sbt
- name: Build and Test
run: sbt -v +test
- uses: EnricoMi/publish-unit-test-result-action@v2
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I haven't personally used https://github.com/EnricoMi/publish-unit-test-result-action before, but I see that it is used in other Content Pipeline repos, like https://github.com/guardian/content-api-scala-client/blob/ed01efc55163e072601012a205861ce5467d5a5e/.github/workflows/testonpush.yml#L34

Previously, I've used https://github.com/test-summary/action, which I think is maybe more limited? Happy to try something new!

Copy link

Test Results

11 tests   5 ✅  24s ⏱️
 1 suites  0 💤
 1 files    6 ❌

For more details on these failures, see this check.

Results for commit 0a21d64.

@rtyley rtyley marked this pull request as ready for review January 11, 2024 11:46
@rtyley rtyley requested a review from a team as a code owner January 11, 2024 11:46
@Divs-B
Copy link
Contributor

Divs-B commented Jan 11, 2024

Thanks @rtyley for adding CI, it does shows 6 tests failing which we have seen locally as well via sbt test so it means CI is correctly working here.
happy to go ahead to merge so that we can proceed with #28 and #30 to fix testcases and release process as aforementioned.

@rtyley rtyley merged commit 76e4df2 into main Jan 11, 2024
0 of 2 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