Skip to content

Commit 33e1d2c

Browse files
committed
Replace Travis-CI with GHA.
Signed-off-by: Daniel (dB.) Doubrovkine <[email protected]>
1 parent 5371fd8 commit 33e1d2c

File tree

9 files changed

+69
-30
lines changed

9 files changed

+69
-30
lines changed

.github/workflows/danger.yml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
name: danger
3+
on:
4+
pull_request:
5+
types: [opened, reopened, edited, synchronize]
6+
jobs:
7+
danger:
8+
runs-on: ubuntu-20.04
9+
steps:
10+
- uses: actions/checkout@v3
11+
with:
12+
fetch-depth: 0
13+
- name: Set up Ruby
14+
uses: ruby/setup-ruby@v1
15+
with:
16+
ruby-version: 2.7
17+
bundler-cache: true
18+
- name: Run Danger
19+
run: |
20+
# the personal token is public, this is ok, base64 encode to avoid tripping Github
21+
TOKEN=$(echo -n Z2hwX0xNQ3VmanBFeTBvYkZVTWh6NVNqVFFBOEUxU25abzBqRUVuaAo= | base64 --decode)
22+
DANGER_GITHUB_API_TOKEN=$TOKEN bundle exec danger --verbose

.github/workflows/lint.yml

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: lint
2+
on: [push, pull_request]
3+
jobs:
4+
rubocop:
5+
name: RuboCop
6+
runs-on: ubuntu-latest
7+
steps:
8+
- name: Checkout
9+
uses: actions/checkout@v3
10+
- name: Set up Ruby
11+
uses: ruby/setup-ruby@v1
12+
with:
13+
ruby-version: '2.7'
14+
bundler-cache: true
15+
- run: bundle exec rubocop
16+

.github/workflows/test.yml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
name: test
3+
on: [push, pull_request]
4+
jobs:
5+
test:
6+
runs-on: ubuntu-latest
7+
strategy:
8+
fail-fast: false
9+
matrix:
10+
entry:
11+
- { ruby: '2.7', faraday: '0.9.0' }
12+
- { ruby: '2.7', faraday: '0.17.0' }
13+
- { ruby: '2.7', faraday: '~> 1.0' }
14+
- { ruby: 'jruby-9.2.21.0' }
15+
- { ruby: 'ruby-head', allowed-failure: true }
16+
- { ruby: 'jruby-head', allowed-failure: true }
17+
name: test (${{ matrix.entry.ruby }}, ${{ matrix.entry.faraday || 'default' }})
18+
steps:
19+
- uses: actions/checkout@v3
20+
- uses: ruby/setup-ruby@v1
21+
with:
22+
ruby-version: ${{ matrix.entry.ruby }}
23+
bundler-cache: true
24+
- run: bundle exec rake test
25+
continue-on-error: ${{ matrix.entry.allowed-failure || false }}

.travis.yml

-24
This file was deleted.

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
### 1.0.2 (Next)
44

5+
* [#268](https://github.com/codegram/hyperclient/pull/268): Replace Travis-CI with GHA - [@dblock](https://github.com/dblock).
56
* Your contribution here.
67

78
### 1.0.1 (2021/01/02)

CONTRIBUTING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ git push origin my-feature-branch -f
106106

107107
#### Check on Your Pull Request
108108

109-
Go back to your pull request after a few minutes and see whether it passed muster with Travis-CI. Everything should look green, otherwise fix issues and amend your commit as described above.
109+
Go back to your pull request after a few minutes and see whether it passed muster with CI. Everything should look green, otherwise fix issues and amend your commit as described above.
110110

111111
#### Be Patient
112112

Gemfile

-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
# NOTE: this is temporary until Bundler 2.0 changes how github: references work.
2-
git_source(:github) { |repo| "https://github.com/#{repo['/'] ? repo : "#{repo}/#{repo}"}.git" }
3-
41
source 'https://rubygems.org'
52

63
gem 'faraday', ENV['FARADAY_VERSION'] if ENV.key?('FARADAY_VERSION')

README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
# Hyperclient
22

33
[![Gem Version](http://img.shields.io/gem/v/hyperclient.svg)](http://badge.fury.io/rb/hyperclient)
4-
[![Build Status](http://img.shields.io/travis/codegram/hyperclient.svg)](https://travis-ci.org/codegram/hyperclient)
4+
[![Build Status](https://github.com/codegram/hyperclient/actions/workflows/test.yml/badge.svg?branch=master)](https://github.com/codegram/hyperclient/actions/workflows/test.yml)
55
[![Code Climate](https://codeclimate.com/github/codegram/hyperclient.svg)](https://codeclimate.com/github/codegram/hyperclient)
66
[![Coverage Status](https://img.shields.io/coveralls/codegram/hyperclient.svg)](https://coveralls.io/r/codegram/hyperclient?branch=master)
77

88
Hyperclient is a Hypermedia API client written in Ruby. It fully supports [JSON HAL](http://stateless.co/hal_specification.html).
99

1010
# Table of Contents
1111

12+
- [Hyperclient](#hyperclient)
13+
- [Table of Contents](#table-of-contents)
1214
- [Usage](#usage)
1315
- [API Client](#api-client)
1416
- [Resources and Attributes](#resources-and-attributes)

RELEASING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ bundle install
1212
rake
1313
```
1414

15-
Check that the last build succeeded in [Travis CI](https://travis-ci.org/codegram/hyperclient) for all supported platforms.
15+
Check that the last build succeeded in CI for all supported platforms.
1616

1717
Increment the version, modify [lib/hyperclient/version.rb](lib/hyperclient/version.rb).
1818

0 commit comments

Comments
 (0)