From f2ba1208b8b9c9f033495019e4259b21d2732066 Mon Sep 17 00:00:00 2001 From: MSP-Greg Date: Thu, 19 Nov 2020 22:17:12 -0600 Subject: [PATCH] Add GitHub Actions, trim jobs from Travis --- .github/workflows/unf_ext.yml | 49 +++++++++++++++++++++++++++++++++++ .travis.yml | 9 ------- 2 files changed, 49 insertions(+), 9 deletions(-) create mode 100644 .github/workflows/unf_ext.yml diff --git a/.github/workflows/unf_ext.yml b/.github/workflows/unf_ext.yml new file mode 100644 index 0000000..e61aec6 --- /dev/null +++ b/.github/workflows/unf_ext.yml @@ -0,0 +1,49 @@ +name: CI + +on: [push, pull_request] + +jobs: + build: + name: >- + ${{ matrix.os }} ${{ matrix.ruby }} + + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + os: [ ubuntu-20.04, macos-11.0, windows-2019 ] + ruby: [ 2.2, 2.3, 2.4, 2.5, 2.6, 2.7, head ] + include: + - { os: windows-2019, ruby: mingw } + exclude: + - { os: macos-11.0 , ruby: 2.2 } + - { os: macos-11.0 , ruby: 2.3 } + - { os: windows-2019, ruby: head } + + steps: + - name: repo checkout + uses: actions/checkout@v2 + + - name: load ruby, ragel + uses: MSP-Greg/setup-ruby-pkgs@v1 + with: + ruby-version: ${{ matrix.ruby }} + mingw: _upgrade_ + + - name: bundle install + shell: pwsh + run: | + # update RubyGems in Ruby 2.2, bundle install + if ('${{ matrix.ruby }}' -lt '2.3') { + gem update --system 2.7.10 --no-document + } + bundle config set --local path .bundle/vendor + bundle install --jobs 4 --retry 3 + + - name: compile + timeout-minutes: 5 + run: bundle exec rake compile + + - name: test + timeout-minutes: 5 + run: bundle exec rake test diff --git a/.travis.yml b/.travis.yml index 904721d..663e0ac 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,16 +6,7 @@ rvm: - 1.9.3 - 2.0 - 2.1 - - 2.2 - - 2.3 - - 2.4 - - 2.5 - - 2.6 - - 2.7 - - ruby-head matrix: - allow_failures: - - rvm: ruby-head before_install: - gem update --system --conservative || gem install --conservative bundler -v '<2' before_script: