summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenta Murata <mrkn@mrkn.jp>2020-12-28 12:19:38 +0900
committerKenta Murata <mrkn@mrkn.jp>2020-12-28 12:19:38 +0900
commit44476539de1f098bd5a77f236a0c9a44d6a5ea5c (patch)
tree8049125bf2cdea1893ebe4a67e12981cae666684
parent9913ed2930bd79301239dc55773c4e7b74c25ea9 (diff)
downloadjson-44476539de1f098bd5a77f236a0c9a44d6a5ea5c.tar.gz
CI: Use GitHub Actions for CI
-rw-r--r--.github/workflows/ci.yml55
1 files changed, 55 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
new file mode 100644
index 0000000..1c240d4
--- /dev/null
+++ b/.github/workflows/ci.yml
@@ -0,0 +1,55 @@
+name: CI
+
+on:
+- push
+- pull_request
+
+jobs:
+ host:
+ name: ${{ matrix.os }} ${{ matrix.ruby }}
+ runs-on: ${{ matrix.os }}
+ strategy:
+ fail-fast: false
+ matrix:
+ os:
+ - ubuntu-20.04
+ - ubuntu-18.04
+ - macos-11.0
+ - macos-10.15
+ - windows-latest
+ ruby:
+ - 3.0
+ - 2.7
+ - 2.6
+ - 2.5
+ - 2.4
+ - 2.3
+ - debug
+ include:
+ - { os: windows-latest , ruby: mingw }
+ - { os: windows-latest , ruby: mswin }
+ - { os: ubuntu-latest , ruby: jruby-9.1 } # Ruby 2.3
+ - { os: ubuntu-latest , ruby: jruby-9.2 } # Ruby 2.5
+ - { os: ubuntu-latest , ruby: truffleruby }
+ exclude:
+ - { os: windows-latest , ruby: 3.0 }
+ - { os: windows-latest , ruby: debug }
+
+ steps:
+ - uses: actions/checkout@v2
+
+ - name: Set up Ruby
+ uses: ruby/setup-ruby@v1
+ with:
+ ruby-version: ${{ matrix.ruby }}
+
+ - run: bundle install
+
+ - run: rake compile
+
+ - run: rake test
+
+ - run: rake build
+
+ - run: gem install pkg/*.gem
+