Skip to content

Commit

Permalink
Migrate fully to GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
byroot committed Oct 30, 2020
1 parent b54a367 commit 2ec3678
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 38 deletions.
29 changes: 28 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
- master

jobs:
test:
platforms:
strategy:
matrix:
os: [ubuntu, macos, windows]
Expand All @@ -22,3 +22,30 @@ jobs:
ruby-version: ${{ matrix.ruby }}
- run: bundle install
- run: bundle exec rake
rubies:
strategy:
matrix:
os: [ubuntu]
ruby: [2.4, 2.5, 2.6, 2.7, 'ruby-head']
runs-on: ${{ matrix.os }}-latest
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- run: bundle install
- run: bundle exec rake

minimal:
strategy:
matrix:
os: [ubuntu]
ruby: ['jruby', 'truffleruby']
runs-on: ${{ matrix.os }}-latest
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- run: bundle install
- run: bin/test-minimal-support
25 changes: 0 additions & 25 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Bootsnap [![Build Status](https://travis-ci.org/Shopify/bootsnap.svg?branch=master)](https://travis-ci.org/Shopify/bootsnap)
# Bootsnap [![Actions Status](https://github.com/Shopify/bootsnap/workflows/ci/badge.svg)](https://github.com/Shopify/bootsnap/actions)

Bootsnap is a library that plugs into Ruby, with optional support for `ActiveSupport` and `YAML`,
to optimize and cache expensive computations. See [How Does This Work](#how-does-this-work).
Expand Down
9 changes: 0 additions & 9 deletions bin/ci

This file was deleted.

2 changes: 1 addition & 1 deletion lib/bootsnap/cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def precompile_command(*sources)
dir_sort = begin
Dir['.', sort: false]
true
rescue ArgumentError
rescue ArgumentError, TypeError
false
end

Expand Down
2 changes: 1 addition & 1 deletion test/cli_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def test_precompile_directory

def test_precompile_exclude
path_a = Help.set_file('foo/a.rb', 'a = a = 3', 100)
path_b = Help.set_file('foo/b.rb', 'b = b = 3', 100)
Help.set_file('foo/b.rb', 'b = b = 3', 100)

CompileCache::ISeq.expects(:fetch).with(File.expand_path(path_a), cache_dir: @cache_dir)
assert_equal 0, CLI.new(['precompile', '--exclude', 'b.rb', 'foo']).run
Expand Down

0 comments on commit 2ec3678

Please sign in to comment.