From 2a24d33c8fda1e5b0f88fca37da36cf8d374a12c Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Thu, 26 Mar 2020 18:16:56 +0900 Subject: [PATCH 1/3] Use GitHub Actions instead of Travis CI --- .github/workflows/ubuntu.yml | 22 ++++++++++++++++++++++ .travis.yml | 7 ------- 2 files changed, 22 insertions(+), 7 deletions(-) create mode 100644 .github/workflows/ubuntu.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml new file mode 100644 index 0000000..16d390b --- /dev/null +++ b/.github/workflows/ubuntu.yml @@ -0,0 +1,22 @@ +name: ubuntu + +on: [push, pull_request] + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + ruby: [ 2.7, 2.6, 2.5, 2.4, head ] + steps: + - uses: actions/checkout@master + - name: Set up Ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: ${{ matrix.ruby }} + - name: Install dependencies + run: | + gem install bundler --no-document + bundle install + - name: Run test + run: rake test diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index e932031..0000000 --- a/.travis.yml +++ /dev/null @@ -1,7 +0,0 @@ ---- -sudo: false -language: ruby -cache: bundler -rvm: - - 2.6.3 -before_install: gem install bundler -v 2.0.2 From f3a57520919a7cc49677aa4f3c6368bc2633f007 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Thu, 26 Mar 2020 18:19:53 +0900 Subject: [PATCH 2/3] Added macos to build matrix --- .github/workflows/ubuntu.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index 16d390b..3ff7008 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -4,10 +4,12 @@ on: [push, pull_request] jobs: build: - runs-on: ubuntu-latest + name: build (${{ matrix.ruby }} / ${{ matrix.os }}) strategy: matrix: ruby: [ 2.7, 2.6, 2.5, 2.4, head ] + os: [ ubuntu-latest, macos-latest ] + runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@master - name: Set up Ruby From 2f56fd22ac38c73fbbb48317d3ef738ffd247a75 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Thu, 26 Mar 2020 18:43:42 +0900 Subject: [PATCH 3/3] Rename --- .github/workflows/{ubuntu.yml => test.yml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/workflows/{ubuntu.yml => test.yml} (100%) diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/test.yml similarity index 100% rename from .github/workflows/ubuntu.yml rename to .github/workflows/test.yml