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

Migrated travis ci to github actions #263

Merged
merged 9 commits into from
Mar 2, 2022
Merged

Conversation

alexpalchuk
Copy link
Collaborator

@alexpalchuk alexpalchuk commented Feb 18, 2022

Migrated travis ci to github actions. There are several thing we need to do:

  • Migrate $CODESIGNING variable to be usable by github actions
  • Make sure that release to maven works so need to adjust settings.xml with creds
  • Disable travis ci on repo level

on: [push]
jobs:
build:
runs-on: ubuntu-18.04
Copy link
Contributor

Choose a reason for hiding this comment

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

Why an old version of Ubunutu? Is this the most up to date version that GH action supports?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

Cool, let's do it.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

on it

- name: Install
run: |
echo 'Install on ' ${GITHUB_REF##*/}
./mvnw install -DskipTests -Dgpg.skip
Copy link
Contributor

Choose a reason for hiding this comment

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

Why not run the unit tests here? Do we run them somewhere else?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

well, I did the same flow as travis has with only install, for example https://github.com/logzio/sawmill/blob/master/.travis.yml#L13

Copy link
Contributor

Choose a reason for hiding this comment

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

That looks like a bug. Someone, somewhere, should be running the unit tests.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I just checked some merged PR and it has only install and deploy stages https://travis-ci.org/github/logzio/sawmill/builds/753004033
If we want to have also test run I can add this stage if no objections.

Copy link
Contributor

Choose a reason for hiding this comment

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

Let's finish migrating to GH actions as is. Once this works, let's enable tests as well.

@alexpalchuk alexpalchuk requested a review from barakm March 2, 2022 11:36
@alexpalchuk
Copy link
Collaborator Author

@barakm updated

@alexpalchuk alexpalchuk merged commit a2cfdf9 into master Mar 2, 2022
@alexpalchuk alexpalchuk deleted the github-ci-migration branch March 3, 2022 13:11
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.

None yet

2 participants