Skip to content

Commit 909641d

Browse files
committed
Add Actions CI - workflow.yml
1 parent 4f37324 commit 909641d

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

.github/workflows/workflow.yml

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: nio4r
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
name: >-
8+
${{ matrix.os }}, ${{ matrix.ruby }}
9+
env:
10+
CI: true
11+
TESTOPTS: -v
12+
13+
runs-on: ${{ matrix.os }}
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
os: [ ubuntu-16.04, ubuntu-18.04, macos, windows-latest ]
18+
ruby: [ 2.3, 2.4, 2.5, 2.6, 2.7, jruby ]
19+
exclude:
20+
- os: windows-latest
21+
ruby: 2.3
22+
- os: windows-latest
23+
ruby: jruby
24+
25+
steps:
26+
- name: repo checkout
27+
uses: actions/checkout@v2
28+
29+
- name: load ruby
30+
uses: eregon/use-ruby-action@v1
31+
with:
32+
ruby-version: ${{ matrix.ruby }}
33+
34+
- name: RubyGems, Bundler Update
35+
run: gem update --system --no-document --conservative
36+
37+
- name: bundle install
38+
run: bundle install --path .bundle/gems --without development
39+
40+
- name: compile
41+
run: bundle exec rake compile
42+
43+
- name: test
44+
run: bundle exec rake spec
45+
timeout-minutes: 10

0 commit comments

Comments
 (0)