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 CI from Travis CI to GitHub Actions workflow, to get CI working again. #109

Merged
merged 1 commit into from
Dec 17, 2021

Conversation

madogiwa0124
Copy link
Contributor

@madogiwa0124 madogiwa0124 commented Dec 17, 2021

This is a PR to migrate to GitHub Action, please close this PR if considering migrating to travis-ci.com, etc.

How about this PR?

Description

Passwordless uses https://travis-ci.org/, but https://travis-ci.org/ expires on June 15, 2021, so it appears that CI is not currently up and running.

Since June 15th, 2021, the building on travis-ci.org is ceased. Please use travis-ci.com from now on.
https://travis-ci.org/github/mikker/passwordless

In this PR configuration file, we load the repository secret CODECOV_TOKEN so that reports are sent to codecov. But since I can't set the token, I checked in test_helper so that I can run CI without specifying it.

https://docs.github.com/en/actions/security-guides/encrypted-secrets

I also excluded ruby2.5, which is EOL, from the CI.

Ruby 2.5
status: eol
release date: 2017-12-25
EOL date: 2021-03-31
https://www.ruby-lang.org/en/downloads/branches/

Test

I have confirmed that the Github Action runs and succeeds in my repository.

https://github.com/madogiwa0124/passwordless/actions/runs/1566667538

This repository is currently using https://travis-ci.org/. However, https://travis-ci.org/ was terminated on June 15, 2021.

> Since June 15th, 2021, the building on travis-ci.org is ceased. Please use travis-ci.com from now on.
> https://travis-ci.org/github/mikker/passwordless

Therefore, I moved to GitHub Action to restart CI.

The ruby 2.5 was excluded from CI because it is EOL.

I tried to set the repository secret `CODECOV_TOKEN` so that reports will be sent to codecov,
but I can't set the token, so I checked test_helper so that CI can be run even if it is not specified.
@madogiwa0124 madogiwa0124 changed the title Migrated CI from Travis CI to GitHub Actions workflow, to get CI working again. migrated CI from Travis CI to GitHub Actions workflow, to get CI working again. Dec 17, 2021
@mikker mikker merged commit f9b9a3b into mikker:master Dec 17, 2021
@mikker
Copy link
Owner

mikker commented Dec 17, 2021

This is wonderful! Thank you very much for setting this up 💙💚💛💜❤️

madogiwa0124 added a commit to madogiwa0124/passwordless that referenced this pull request Dec 21, 2021
Currently, CI is only triggered by push, so PR from a forked repository will not run CI.
Therefore, added `pull_request` to `on`.

Also, if simply add `pull_request`, it will be executed twice with `push`,
so we modified `push` to be executed only in the `master` branch.

related: mikker#109
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