From c072128fdd255f1701010a81368e9300ef93950c Mon Sep 17 00:00:00 2001 From: Holger Just Date: Thu, 16 Jul 2020 14:13:28 +0200 Subject: [PATCH] First version of GitHub Actions based CI --- .github/workflows/ci.yml | 56 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..30afa08 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,56 @@ +# This is a basic workflow to help you get started with Actions + +name: CI + +# Controls when the action will run. Triggers the workflow on push or pull request +# events but only for the master branch +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + rspec: + runs-on: ${{ matrix.os }} + + strategy: + matrix: + os: [ubuntu-latest, macos-latest, windows-latest] + ruby: + - 2.7 + - 2.6 + - 2.5 + - 2.4 + - 2.3 + - 2.2 + - 2.1 + - head + + - jruby-9.1 + - jruby-9.2 + - jruby-head + + - truffleruby + - truffleruby-head + include: + - ruby: 2.1 + bundler-version: 1 + - ruby: 2.2 + bundler-version: 1 + + continue-on-error: ${{ endsWith(matrix.ruby, 'head') || matrix.ruby == 'truffleruby' }} + + steps: + - uses: actions/checkout@v2 + + - name: Set up Ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: ${{ matrix.ruby }} + bundler-version: ${{ matrix.bundler-version || '2' }} + bundler-cache: true + + - name: rspec + run: bundle exec rspec