Skip to content

Commit 88051ce

Browse files
authored
Travis -> GHA (#17)
1 parent 38fadfb commit 88051ce

File tree

3 files changed

+50
-7
lines changed

3 files changed

+50
-7
lines changed

.github/CODEOWNERS

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
* @dawenster
1+
* @aguilinger
2+
* @neurosnap

.github/workflows/test.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Tests
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
- master
8+
push:
9+
branches:
10+
- main
11+
- master
12+
13+
jobs:
14+
15+
test:
16+
name: Test
17+
runs-on: ubuntu-20.04
18+
strategy:
19+
fail-fast: false
20+
matrix:
21+
RUBY_VERSION: ["2.5", "2.6", "3.1"]
22+
23+
steps:
24+
- name: Check out code
25+
uses: actions/checkout@v4
26+
27+
- name: Install Ruby ${{ matrix.RUBY_VERSION }}
28+
uses: ruby/setup-ruby@v1
29+
with:
30+
ruby-version: ${{ matrix.RUBY_VERSION }}
31+
bundler-cache: true
32+
33+
- name: Run Tests
34+
run: bundle exec rake
35+
36+
results:
37+
if: ${{ always() }}
38+
runs-on: ubuntu-latest
39+
name: Final Results
40+
needs: [test]
41+
steps:
42+
- run: exit 1
43+
# see https://stackoverflow.com/a/67532120/4907315
44+
if: >-
45+
${{
46+
contains(needs.*.result, 'failure')
47+
|| contains(needs.*.result, 'cancelled')
48+
}}

.travis.yml

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

0 commit comments

Comments
 (0)