Skip to content

Commit c68c7a4

Browse files
authored
Merge pull request #54 from maxmind/horgh/github-action
Test using GitHub Action
2 parents a29da58 + 4529279 commit c68c7a4

File tree

3 files changed

+41
-16
lines changed

3 files changed

+41
-16
lines changed

.github/workflows/rubocop.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: Run rubocop
2+
on: [push, pull_request]
3+
jobs:
4+
rubocop:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- uses: actions/checkout@v2
8+
- uses: ruby/setup-ruby@v1
9+
with:
10+
ruby-version: 2.7
11+
- run: bundle install
12+
- run: bundle exec rake -t rubocop

.github/workflows/test.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Run tests
2+
on: [push, pull_request]
3+
jobs:
4+
test:
5+
runs-on: ${{ matrix.os }}
6+
strategy:
7+
fail-fast: false
8+
matrix:
9+
os: [ubuntu-latest, windows-latest, macos-latest]
10+
version:
11+
[
12+
2.4,
13+
2.5,
14+
2.6,
15+
2.7,
16+
jruby,
17+
]
18+
exclude:
19+
- os: windows-latest
20+
version: jruby
21+
steps:
22+
- uses: actions/checkout@v2
23+
with:
24+
submodules: true
25+
- uses: ruby/setup-ruby@v1
26+
with:
27+
ruby-version: ${{ matrix.version }}
28+
- run: bundle install
29+
- run: bundle exec rake -t test

.travis.yml

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)