Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Completly move to Github Actions (#763)
* Run tests on ruby 2.7 * `ruby/setup-ruby` comes with the right bundler * Add head versions to github actions file * Add RUBYOPT to github actions config * Only run the master branch on push Just like in TravisCI. * Remove TravisCI in favor of Github Actions * Github Actions should be fast enough
- Loading branch information
1 parent
db7d046
commit 3fdb33f
Showing
3 changed files
with
18 additions
and
32 deletions.
There are no files selected for viewing
23 changes: 16 additions & 7 deletions
23
.github/workflows/windows.yml → .github/workflows/test.yml
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 |
---|---|---|
@@ -1,27 +1,36 @@ | ||
name: windows | ||
name: test | ||
|
||
on: [push, pull_request] | ||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
pull_request: | ||
|
||
jobs: | ||
build: | ||
runs-on: windows-latest | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
ruby: [2.7, 2.6, 2.5, 2.4] | ||
ruby: [2.7, 2.6, 2.5, 2.4, head, jruby-head] | ||
os: [ubuntu-latest, windows-latest] | ||
env: | ||
RUBYOPT: -W0 | ||
steps: | ||
- uses: actions/checkout@master | ||
- name: Set up Ruby | ||
uses: ruby/setup-ruby@v1 | ||
- name: Setup OS dependencies | ||
uses: MSP-Greg/setup-ruby-pkgs@v1 | ||
with: | ||
ruby-version: ${{ matrix.ruby }} | ||
apt-get: libsqlite3-dev | ||
- name: Install dependencies | ||
run: | | ||
ruby -e "Dir['{,spec/**/}Gemfile.lock'].each { |f| File.write(f, File.read(f).split('BUNDLED WITH').first)}" | ||
bundle install | ||
- name: Change TMPDIR to something non symlinked | ||
run: | | ||
echo "::set-env name=TMPDIR::$HOME/tmp" | ||
mkdir $HOME/tmp | ||
- name: Run test | ||
run: bundle exec rake | ||
continue-on-error: ${{ endsWith(matrix.ruby, 'head') }} |
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