-
-
Notifications
You must be signed in to change notification settings - Fork 234
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace Travis CI with GitHub Actions (#266)
- Loading branch information
1 parent
0ce94f0
commit baaae44
Showing
9 changed files
with
96 additions
and
60 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,7 @@ | ||
[*] | ||
charset = utf-8 | ||
end_of_line = lf | ||
indent_style = space | ||
indent_size = 2 | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true |
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,63 @@ | ||
name: tests | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
test: | ||
name: ${{ matrix.ruby }} | ||
runs-on: ubuntu-latest | ||
env: | ||
COVERAGE_RUBY_VERSION: 2.6 | ||
BUNDLER_PATH: vendor/bundle | ||
strategy: | ||
matrix: | ||
ruby: | ||
- 2.4 | ||
- 2.5 | ||
- 2.6 | ||
- 2.7 | ||
- truffleruby | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@master | ||
|
||
- name: Setup ruby ${{ matrix.ruby }} | ||
uses: eregon/use-ruby-action@master | ||
with: | ||
ruby-version: ${{ matrix.ruby }} | ||
|
||
- name: Restore cache | ||
uses: actions/cache@v1 | ||
with: | ||
path: ${{ env.BUNDLER_PATH }} | ||
key: ruby-${{ matrix.ruby }}-bundler-${{ hashFiles('*.gemspec') }}-${{ hashFiles('**/gemfiles/**') }} | ||
|
||
- name: Prepare environment | ||
run: | | ||
sudo apt-get -y install libsqlite3-dev libxslt1-dev | ||
gem uninstall bundler -v '>= 2' -ax --force || true | ||
gem install bundler -v '~>1.0' -N || true | ||
echo "::set-env name=BUNDLER_VERSION::$(bundle -v | grep -o -P '\d+\.\d+.\d+')" | ||
- name: Install | ||
run: | | ||
bundle config path ${{ env.BUNDLER_PATH }} | ||
bundle install | ||
bundle exec appraisal install | ||
- name: Test | ||
run: bundle exec appraisal rspec | ||
|
||
- name: Publish code coverage | ||
if: startsWith(env.RUBY_VERSION, env.COVERAGE_RUBY_VERSION) | ||
uses: paambaati/[email protected] | ||
env: | ||
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }} | ||
with: | ||
coverageCommand: bundle exec appraisal rspec |
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 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