Skip to content

Commit 402b869

Browse files
authored
Merge pull request #38 from ruby/actions
Migrate GitHub Actions
2 parents be6e37f + 524634a commit 402b869

File tree

8 files changed

+95
-19
lines changed

8 files changed

+95
-19
lines changed

.github/workflows/macos.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: macos
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
runs-on: macos-latest
8+
steps:
9+
- uses: actions/checkout@master
10+
- name: Install dependencies
11+
run: |
12+
gem install bundler --no-document
13+
bundle install
14+
- name: Run test
15+
run: rake

.github/workflows/ubuntu-rvm.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: ubuntu-rvm
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
matrix:
10+
ruby: [ 'jruby-9.2.6.0', 'jruby-9.1.17.0', 'ruby-head' ]
11+
steps:
12+
- uses: actions/checkout@master
13+
- name: Set up RVM
14+
run: |
15+
curl -sSL https://get.rvm.io | bash
16+
- name: Set up Ruby
17+
run: |
18+
source $HOME/.rvm/scripts/rvm
19+
rvm install ${{ matrix.ruby }} --binary
20+
rvm --default use ${{ matrix.ruby }}
21+
- name: Install dependencies
22+
run: |
23+
source $HOME/.rvm/scripts/rvm
24+
gem install bundler --no-document
25+
bundle install
26+
- name: Run test
27+
run: |
28+
source $HOME/.rvm/scripts/rvm
29+
rake
30+
env:
31+
JRUBY_OPTS: -X+O

.github/workflows/ubuntu.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: ubuntu
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
matrix:
10+
ruby: [ '2.6.x', '2.5.x', '2.4.x', '2.3.x' ]
11+
steps:
12+
- uses: actions/checkout@master
13+
- name: Set up Ruby
14+
uses: actions/setup-ruby@v1
15+
with:
16+
version: ${{ matrix.ruby }}
17+
- name: Install dependencies
18+
run: |
19+
gem install bundler --no-document
20+
bundle install
21+
- name: Run test
22+
run: rake

.github/workflows/windows.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: windows
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
runs-on: windows-latest
8+
strategy:
9+
matrix:
10+
ruby: [ '2.6.x', '2.5.x', '2.4.x' ]
11+
steps:
12+
- uses: actions/checkout@master
13+
- name: Set up Ruby
14+
uses: actions/setup-ruby@v1
15+
with:
16+
version: ${{ matrix.ruby }}
17+
- name: Set up Bundler
18+
run: gem install bundler --no-document
19+
- name: Install dependencies
20+
run: bundle install
21+
- name: Run test
22+
run: rake
23+
continue-on-error: true # test_fileutils.rb:424 and test_fileutils.rb:455

.travis.yml

Lines changed: 0 additions & 14 deletions
This file was deleted.

Gemfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
source 'https://rubygems.org'
22

3-
# Specify your gem's dependencies in fileutils.gemspec
43
gemspec
4+
5+
group :development do
6+
gem "rake"
7+
end

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# FileUtils
22

3-
[![Build Status](https://travis-ci.org/ruby/fileutils.svg?branch=master)](https://travis-ci.org/ruby/fileutils)
4-
53
Namespace for several file utility methods for copying, moving, removing, etc.
64

75
## Installation

fileutils.gemspec

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,4 @@ Gem::Specification.new do |s|
2727
"source_code_uri" => "https://github.com/ruby/fileutils"
2828
}
2929
end
30-
31-
s.add_development_dependency 'rake'
3230
end

0 commit comments

Comments
 (0)