Skip to content

Commit

Permalink
Travis -> GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
UserNotFound committed Jul 3, 2024
1 parent 5baaf56 commit a6684f4
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 12 deletions.
55 changes: 55 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
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.1", "2.2", "2.3", "2.6", "3"]

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

# We haven't updated this repo for compatibility with Ruby 3.x, yet are
# actually using it in deploy-api with 3.x. We'll run the tests, but
# defer fixing the rubocop issues that arise
- name: Lint
if: ${{ matrix.RUBY_VERSION != '3' }}
run: bundle exec rake rubocop

- name: Run Tests
run: bundle exec rspec

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')
}}
11 changes: 0 additions & 11 deletions .travis.yml

This file was deleted.

1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# ![](https://raw.github.com/aptible/straptible/master/lib/straptible/rails/templates/public.api/icon-60px.png) MiniCa

[![Gem Version](https://badge.fury.io/rb/mini_ca.png)](https://rubygems.org/gems/mini_ca)
[![Build Status](https://travis-ci.org/aptible/mini_ca.png?branch=master)](https://travis-ci.org/aptible/mini_ca)
[![Dependency Status](https://gemnasium.com/aptible/mini_ca.png)](https://gemnasium.com/aptible/mini_ca)

A Gem to generate custom X509 certificates in specs.
Expand Down

0 comments on commit a6684f4

Please sign in to comment.