summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2019-08-11 07:56:17 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2019-08-11 07:56:17 +0900
commit608c0f417b79d2106f5797859420af71861a8a76 (patch)
tree6846a15f52740da38cf074d87d30ff500a072edd
parent82356236453f6923050d0fb71a5839738e539162 (diff)
downloadpsych-608c0f417b79d2106f5797859420af71861a8a76.tar.gz
Try to use GitHub Actions
-rw-r--r--.github/workflows/macos.yml15
-rw-r--r--.github/workflows/ubuntu-rvm.yml31
-rw-r--r--.github/workflows/ubuntu.yml24
-rw-r--r--.github/workflows/windows.yml24
4 files changed, 94 insertions, 0 deletions
diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml
new file mode 100644
index 0000000..e161bdd
--- /dev/null
+++ b/.github/workflows/macos.yml
@@ -0,0 +1,15 @@
+name: macos
+
+on: [push]
+
+jobs:
+ build:
+ runs-on: macos-latest
+ steps:
+ - uses: actions/checkout@master
+ - name: Install dependencies
+ run: |
+ gem install bundler --no-document
+ bundle install
+ - name: Run test
+ run: rake
diff --git a/.github/workflows/ubuntu-rvm.yml b/.github/workflows/ubuntu-rvm.yml
new file mode 100644
index 0000000..7ed50ed
--- /dev/null
+++ b/.github/workflows/ubuntu-rvm.yml
@@ -0,0 +1,31 @@
+name: ubuntu-rvm
+
+on: [push]
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+ strategy:
+ matrix:
+ ruby: [ 'jruby-9.2.0.0', 'jruby-9.1.17.0', 'ruby-head' ]
+ steps:
+ - name: Install libraries
+ run: apt install haveged
+ - uses: actions/checkout@master
+ - name: Set up RVM
+ run: |
+ curl -sSL https://get.rvm.io | bash
+ - name: Set up Ruby
+ run: |
+ source $HOME/.rvm/scripts/rvm
+ rvm install ${{ matrix.ruby }} --binary
+ rvm --default use ${{ matrix.ruby }}
+ - name: Install dependencies
+ run: |
+ source $HOME/.rvm/scripts/rvm
+ gem install bundler --no-document
+ bundle install
+ - name: Run test
+ run: |
+ source $HOME/.rvm/scripts/rvm
+ rake
diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml
new file mode 100644
index 0000000..5ea2493
--- /dev/null
+++ b/.github/workflows/ubuntu.yml
@@ -0,0 +1,24 @@
+name: ubuntu
+
+on: [push]
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+ strategy:
+ matrix:
+ ruby: [ '2.6.x', '2.5.x', '2.4.x', '2.3.x' ]
+ steps:
+ - name: Install libraries
+ run: apt install haveged
+ - uses: actions/checkout@master
+ - name: Set up Ruby
+ uses: actions/setup-ruby@v1
+ with:
+ version: ${{ matrix.ruby }}
+ - name: Install dependencies
+ run: |
+ gem install bundler --no-document
+ bundle install
+ - name: Run test
+ run: rake
diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml
new file mode 100644
index 0000000..6948922
--- /dev/null
+++ b/.github/workflows/windows.yml
@@ -0,0 +1,24 @@
+name: windows
+
+on: [push]
+
+jobs:
+ build:
+ runs-on: windows-latest
+ strategy:
+ matrix:
+ ruby: [ '2.6.x', '2.5.x', '2.4.x' ]
+ steps:
+ - uses: actions/checkout@master
+ - name: Set up Ruby
+ uses: actions/setup-ruby@v1
+ with:
+ version: ${{ matrix.ruby }}
+ - name: Set up Bundler
+ run: gem install bundler --no-document
+ - name: Install dependencies
+ run: bundle install
+ - name: Build
+ run: rake -rdevkit compile
+ - name: Run test
+ run: rake test