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

Setting up CI #79

Merged
merged 21 commits into from
May 25, 2020
Merged

Setting up CI #79

merged 21 commits into from
May 25, 2020

Conversation

j-hellenberg
Copy link
Contributor

@j-hellenberg j-hellenberg commented May 20, 2020

With a lot of trial and error, CI now finally seems to work.

I haven't noticed any difference between github actions and travis though; both seem to now work fine and produce the same results with the main difference being that travis reports coverage to coveralls.io while github actions does not.

When merged, the CI configuration and the README.md badges should now target the dev branch.

Note that I also had to change one line of source code to make all current tests succeed.

Closes #74.

@j-hellenberg j-hellenberg linked an issue May 20, 2020 that may be closed by this pull request
@frcroth
Copy link
Contributor

frcroth commented May 20, 2020

Wow that's a lot of commits. Maybe squash?

Copy link
Contributor

@frcroth frcroth left a comment

Choose a reason for hiding this comment

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

Seems alright, pls explain what you did

@j-hellenberg
Copy link
Contributor Author

Wow that's a lot of commits. Maybe squash?

True. But all of them contain only minor changes, since when changing files on Github directly, every change produces an separate commit.
Squashing would cerainly make sense here, but I don't know how to do so on Github and for some weird reason I am unable to find the files outside of my squeak-image on local...

@j-hellenberg
Copy link
Contributor Author

Seems alright, pls explain what you did

In overview:

  • Created configuration file for github action (now targeting dev branch)
  • Fixed dependency to MorphicTestingFramework
  • Updated badges in README.md
  • All tests are currently succeeding due to the small fix you mentioned above

@frcroth
Copy link
Contributor

frcroth commented May 21, 2020

Squashing can be done online, when the pull request is merged, by clicking the arrow next to "Merge pull request"

@@ -1,4 +1,4 @@
# RichTextEditing [![Build Status](https://travis-ci.org/hpi-swa-teaching/RichTextEditing.svg?branch=master)](https://travis-ci.org/hpi-swa-teaching/RichTextEditing)[![Coverage Status](https://coveralls.io/repos/github/hpi-swa-teaching/RichTextEditing/badge.svg?branch=master)](https://coveralls.io/github/hpi-swa-teaching/RichTextEditing?branch=master)
# RichTextEditing ![CI](https://github.com/hpi-swa-teaching/RichTextEditing/workflows/CI/badge.svg)[![Build Status](https://travis-ci.org/hpi-swa-teaching/RichTextEditing.svg?branch=dev)](https://travis-ci.org/hpi-swa-teaching/RichTextEditing)[![Coverage Status](https://coveralls.io/repos/github/hpi-swa-teaching/RichTextEditing/badge.svg?branch=master)](https://coveralls.io/github/hpi-swa-teaching/RichTextEditing?branch=master)
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we don’t need travis anymore, so the badge can surely be removed

- Squeak-5.2
- Squeak-5.1
- Squeak64-trunk
- Squeak64-5.3
Copy link
Contributor

@sirkrypt0 sirkrypt0 May 21, 2020

Choose a reason for hiding this comment

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

I think we just remove travis at this point, as we have GitHub actions

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not quite sure about this, since without travis, coverage is no longer reported.
Travis is actually succeeding, the badge only shows it as failing because it is already targeting the dev branch with the old travis configuration. Does not hurt to keep it, I guess.

Copy link
Contributor

Choose a reason for hiding this comment

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

oh, github action has no coverage report?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Seems like it. The smalltalkci readme does only mention coverage for Travis or AppVeyor and the test-ci branch only appearend on coveralls after I reenabled travis.

@sirkrypt0
Copy link
Contributor

It’s better to do a rebase when pulling the changes from dev branch to avoid merge commits

# events but only for the master branch
on:
push:
branches: [ dev ]
Copy link
Contributor

Choose a reason for hiding this comment

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

The CI should be running on each push on each branch. This allows for test driven development and warns you if you pushed something that breaks a test etc. If you run the CI only on pull requests, you might already have done a lot and it's unclear on which commit it exactly got wrong.

@j-hellenberg j-hellenberg merged commit b5fd9fe into dev May 25, 2020
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.

Setup SmalltalkCI as Github Action
3 participants