summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndré Luis Leal Cardoso Junior <andrehjr@gmail.com>2022-03-05 18:42:42 -0300
committerAndré Luis Leal Cardoso Junior <andrehjr@gmail.com>2022-03-05 21:48:23 -0300
commitc817305b3a478d7c28ddafdc05f0c0ba2c816eba (patch)
tree160307b2e7bc178ec3944d493d2b52ee450c3519
parent454990b83436a714e1396d3dfb96fd684804f829 (diff)
downloadpry-c817305b3a478d7c28ddafdc05f0c0ba2c816eba.tar.gz
Setup windows tests
-rw-r--r--.github/workflows/test.yml26
1 files changed, 20 insertions, 6 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 4ef34eb3..a1f1253a 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -6,7 +6,7 @@ jobs:
test:
strategy:
matrix:
- os: [ubuntu-latest]
+ os: [ubuntu-latest, windows-latest]
ruby:
- 2.0
- 2.1
@@ -23,8 +23,24 @@ jobs:
# - head is currently broken due to yard support for 3.2.0-dev
- jruby
# - jruby-head
+ exclude:
+ - os: windows-latest
+ ruby: jruby
+ - os: windows-latest
+ ruby: '2.0'
+ - os: windows-latest
+ ruby: '2.1'
+ - os: windows-latest
+ ruby: '2.2'
+ - os: windows-latest
+ ruby: '2.3' # Intermittent failing Expression: RBASIC_CLASS(ret) == rb_cString
+ - os: windows-latest
+ ruby: '3.0'
+ - os: windows-latest
+ ruby: '3.1'
runs-on: ${{ matrix.os }}
+ continue-on-error: true
steps:
- uses: actions/checkout@v2
@@ -38,12 +54,10 @@ jobs:
- name: Install dependencies
run: bundle install
+ # Rubocop is not included on the Gemfile for earlier rubies. This can be dropped as soon as the support is dropped.
- name: Rubocop lint
- run: |
- if bundle list | grep rubocop
- then
- bundle exec rubocop --parallel
- fi
+ if: matrix.ruby != '2.0' && matrix.ruby != '2.1' && matrix.ruby != '2.2'
+ run: rubocop --parallel
- name: YARD lint
run: |