Skip to content

Commit 6005814

Browse files
committed
CI on windows.
1 parent f82fce1 commit 6005814

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,31 @@ jobs:
4848
if: "matrix.ruby == '3.0'"
4949
with:
5050
github-token: ${{ secrets.GITHUB_TOKEN }}
51+
wintests:
52+
name: Win64 Ruby ${{ matrix.ruby }}
53+
if: "contains(github.event.commits[0].message, '[ci skip]') == false"
54+
runs-on: windows-latest
55+
env:
56+
CI: true
57+
ALLOW_FAILURES: ${{ endsWith(matrix.ruby, 'head') || matrix.ruby == 'jruby' }}
58+
strategy:
59+
fail-fast: false
60+
matrix:
61+
ruby:
62+
- 3.1
63+
steps:
64+
- name: Clone repository
65+
uses: actions/checkout@v2
66+
- name: Set up Ruby
67+
uses: ruby/setup-ruby@v1
68+
with:
69+
ruby-version: ${{ matrix.ruby }}
70+
- name: Install dependencies
71+
run: bundle install --jobs 4 --retry 3
72+
- name: Run tests
73+
run: ruby --version; bundle exec rspec spec || $ALLOW_FAILURES
74+
- name: Coveralls GitHub Action
75+
uses: coverallsapp/github-action@v1.1.2
76+
if: "matrix.ruby == '3.0'"
77+
with:
78+
github-token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)