Skip to content

Commit

Permalink
Travis -> GHA (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
UserNotFound authored Jul 3, 2024
1 parent 38fadfb commit 88051ce
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 7 deletions.
3 changes: 2 additions & 1 deletion .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
* @dawenster
* @aguilinger
* @neurosnap
48 changes: 48 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Tests

on:
pull_request:
branches:
- main
- master
push:
branches:
- main
- master

jobs:

test:
name: Test
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
RUBY_VERSION: ["2.5", "2.6", "3.1"]

steps:
- name: Check out code
uses: actions/checkout@v4

- name: Install Ruby ${{ matrix.RUBY_VERSION }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.RUBY_VERSION }}
bundler-cache: true

- name: Run Tests
run: bundle exec rake

results:
if: ${{ always() }}
runs-on: ubuntu-latest
name: Final Results
needs: [test]
steps:
- run: exit 1
# see https://stackoverflow.com/a/67532120/4907315
if: >-
${{
contains(needs.*.result, 'failure')
|| contains(needs.*.result, 'cancelled')
}}
6 changes: 0 additions & 6 deletions .travis.yml

This file was deleted.

0 comments on commit 88051ce

Please sign in to comment.