Movatterモバイル変換


[0]ホーム

URL:


Skip to content
DEV Community
Log in Create account

DEV Community

Cover image for Setup GitHub Actions as CI for Ember addons
Jeldrik Hanschke
Jeldrik Hanschke

Posted on

     

Setup GitHub Actions as CI for Ember addons

Developers creating Ember Addons did not need to care about CI setup when starting a new addon for a long time. Ember CLI generated a ready to be used TravisCI configuration automatically. One click in Travis dashboard to enable it for the new project was enough to get continuous integration up and running.

Sadly TravisCI recently changed their plan for open source projects dramatically. Runners for travis.org were cut. Pipelines stayed in pending state for days. A few weeks later Travis enforced a limit on CI minutes per month for open source projects running on travis.com. The limit is too small for many projects. Long story short: Travis basically dropped their free plan for open source projects.

Luckly GitHub provides a great replacement: GitHub Actions. It is free for open source projects and doesn't have a limit on CI minutes. It doesn't even require the maintainer to manual enable it. Push the configuration file to the repository and you are done. 🚀

But who wants to write such configuration himself? I want to focus on the addon I'm building. Needing to learn more about GitHub Actions might be interesting. But not when I'm trying to build the next great addon for our ecosystem!

If you feel the same I have something for you:create-github-actions-setup-for-ember-addon. 🎉

Command to run the script

It is a small node.js script, which creates a GitHub Actions setup for Ember addons automatically. Runyarn create github-actions-setup-for-ember-addon if using yarn ornpm init github-actions-setup-for-ember-addons if using NPM in your project folder. Commit the created.github/workflows/ci.yml. And you are done. 🥳

  1. Switch to project folder.

  2. Run the script:

    # in a yarn repoyarn create github-actions-setup-for-ember-addon# in an npm reponpm init github-actions-setup-for-ember-addon
  3. Commit the created.github/workflows/ci.yml file.

  4. See the CI pipeline running.

The script analyzes an existing.travis.yml to determine the CI configuration to be used. As Ember CLI still creates a TravisCI configuration the created GitHub Actions workflow will follow the recommendations for the Ember version used by your project.

Create-github-actions-setup-for-ember-addon is still alpha software. It tries to follow latest best practices. But some questions are not finally resolved yet.

But you do no need to worry. It supports later upgrades of the generated GitHub Actions workflow. All you need to do is runningyarn create github-actions-setup-for-ember-addons and your project will be upgraded to latest blueprints. 💪

Try it out right now!

Top comments(0)

Subscribe
pic
Create template

Templates let you quickly answer FAQs or store snippets for re-use.

Dismiss

Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment'spermalink.

For further actions, you may consider blocking this person and/orreporting abuse

  • Joined

More fromJeldrik Hanschke

DEV Community

We're a place where coders share, stay up-to-date and grow their careers.

Log in Create account

[8]ページ先頭

©2009-2025 Movatter.jp