forked from thoughtbot/ember-cli-rails
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[GitHub Actions][] platform is free for open-source projects, and might be more straightforward to configure as our Continuous Integration provider than our current provider ([TravisCI][]). In an effort to solve the underlying issues at-play in [PR#578][], this commit take similar measures: * depend on the [`webdrivers` gem][webdrivers] to manage Selenium and Chromedriver integration * install and configure NodeJS, the EmberCLI package, and the Dummy application's dependencies in CI * replace the usage of Appraisals with a more straightforward environment variable configuration for Rails versions (inspired by the [`scenic_views/scenic` project's][scenic] GitHub Actions configuration * install dependencies for Rails `4.2` through `5.2` with `bundler@1.17.0` Test suite changes --- In the interest of returning our continuous integration into a reliably passing state, this commit configures the tests covering the `include_ember_script_tags` and `include_ember_stylesheet_tags`. Once we're re-established a passing baseline and can confidently resume accepting open-source contributions, we can investigate what has changed in EmberCLI to break those tests. Until then, we'll skip them so that they don't hold us up. [GitHub Actions]: https://help.github.com/en/actions/building-and-testing-code-with-continuous-integration/about-continuous-integration [TravisCI]: https://travis-ci.org/ [PR#578]: thoughtbot#578 [webdrivers]: https://github.com/titusfortner/webdrivers/tree/v3.0.0 [scenic]: https://github.com/scenic-views/scenic/blob/7898354b471aa3f7c0011d1b7775fe88035ed30c/.github/workflows/ci.yml
- Loading branch information
1 parent
3901633
commit e0fb13c
Showing
16 changed files
with
83 additions
and
140 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
name: "CI Tests" | ||
|
||
on: | ||
push: | ||
branches: "master" | ||
pull_request: | ||
branches: "*" | ||
|
||
jobs: | ||
build: | ||
runs-on: "ubuntu-latest" | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
ruby: ["2.3", "2.4"] | ||
rails: ["4.2", "5.0", "5.1", "5.2"] | ||
|
||
env: | ||
BUNDLER_VERSION: "1.17.0" | ||
RAILS_ENV: "test" | ||
RAILS_VERSION: "${{ matrix.rails }}" | ||
|
||
steps: | ||
- uses: "actions/checkout@v1" | ||
|
||
- name: "Install NodeJS 12.x" | ||
uses: "actions/setup-node@v1" | ||
with: | ||
node-version: "12.x" | ||
|
||
- name: "Install Ruby ${{ matrix.ruby }}" | ||
uses: "ruby/setup-ruby@v1" | ||
with: | ||
ruby-version: "${{ matrix.ruby }}" | ||
|
||
- name: "Generate lockfile" | ||
run: | | ||
gem uninstall bundler | ||
gem install bundler -v 1.17.0 | ||
bundle config path vendor/bundle | ||
bundle lock | ||
- name: "Cache Ruby dependencies" | ||
uses: "actions/cache@v1" | ||
with: | ||
path: "vendor/bundle" | ||
key: bundle-${{ hashFiles('Gemfile.lock') }} | ||
|
||
- name: "Install Webdriver" | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get -yqq install chromium-browser | ||
- name: "Run Setup" | ||
run: | | ||
bin/setup | ||
- name: "Run Tests" | ||
run: | | ||
bin/rake |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters