Skip to content

Commit 9fd51e0

Browse files
committed
CI on Windows.
1 parent 3630df4 commit 9fd51e0

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

Diff for: .github/workflows/ci.yml

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

0 commit comments

Comments
 (0)