Skip to content

Commit 8d3db92

Browse files
committed
ci: add github actions workflow
1 parent b41bc7a commit 8d3db92

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

.github/workflows/ci.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: ci
2+
concurrency:
3+
group: "${{github.workflow}}-${{github.ref}}"
4+
cancel-in-progress: true
5+
on:
6+
workflow_dispatch:
7+
push:
8+
branches:
9+
- main
10+
- v*.*.x
11+
tags:
12+
- v*.*.*
13+
pull_request:
14+
types: [opened, synchronize]
15+
branches:
16+
- '*'
17+
18+
jobs:
19+
cruby:
20+
strategy:
21+
fail-fast: false
22+
matrix:
23+
ruby: ["2.2", "2.3", "2.4", "2.5", "2.6", "2.7", "3.0", "ruby-head"]
24+
runs-on: ubuntu-latest
25+
steps:
26+
- uses: actions/checkout@v2
27+
- uses: ruby/setup-ruby@v1
28+
with:
29+
ruby-version: ${{matrix.ruby}}
30+
bundler-cache: true
31+
- run: bundle exec rake
32+
33+
jruby:
34+
continue-on-error: true # nokogiri on jruby has different behavior
35+
strategy:
36+
fail-fast: false
37+
matrix:
38+
ruby: ["jruby-9.2", "jruby-head"]
39+
runs-on: ubuntu-latest
40+
steps:
41+
- uses: actions/checkout@v2
42+
- uses: ruby/setup-ruby@v1
43+
with:
44+
ruby-version: ${{matrix.ruby}}
45+
bundler-cache: true
46+
- run: bundle exec rake

0 commit comments

Comments
 (0)