Skip to content

Commit d6098c1

Browse files
authored
Merge pull request #11 from ma2gedev/github-actions
enable github actions for tests
2 parents 36143ea + 46d9275 commit d6098c1

File tree

3 files changed

+43
-7
lines changed

3 files changed

+43
-7
lines changed

.github/workflows/ruby.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# This workflow uses actions that are not certified by GitHub.
2+
# They are provided by a third-party and are governed by
3+
# separate terms of service, privacy policy, and support
4+
# documentation.
5+
# This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
6+
# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
7+
8+
name: Ruby
9+
10+
on:
11+
push:
12+
branches: [ master ]
13+
pull_request:
14+
15+
jobs:
16+
test:
17+
18+
runs-on: ubuntu-latest
19+
strategy:
20+
matrix:
21+
ruby: [ '2.5', '2.6', '2.7' ]
22+
23+
steps:
24+
- uses: actions/checkout@v2
25+
- name: Set up Ruby
26+
# To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
27+
# change this to (see https://github.com/ruby/setup-ruby#versioning):
28+
uses: ruby/setup-ruby@v1
29+
with:
30+
ruby-version: ${{ matrix.ruby }}
31+
- name: Restore dependencies cache
32+
uses: actions/cache@v2
33+
with:
34+
path: vendor/bundle
35+
key: ${{ runner.os }}-${{ matrix.ruby }}-gem-${{ hashFiles('**/Gemfile.lock') }}
36+
restore-keys: ${{ runner.os }}-${{ matrix.ruby }}-gem-
37+
- name: Install dependencies
38+
run: |
39+
bundle config path vendor/bundle
40+
bundle install --jobs 4 --retry 3
41+
- name: Run tests
42+
run: bundle exec rake

.travis.yml

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

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Faraday::Encoding
22

33
[![Gem Version](https://badge.fury.io/rb/faraday-encoding.svg)](http://badge.fury.io/rb/faraday-encoding)
4-
[![Build Status](https://travis-ci.org/ma2gedev/faraday-encoding.svg)](https://travis-ci.org/ma2gedev/faraday-encoding)
4+
[![Build Status](https://github.com/ma2gedev/faraday-encoding/workflows/Ruby/badge.svg?branch=master)](https://github.com/ma2gedev/faraday-encoding/actions?query=workflow%3ARuby)
55

66
A Faraday Middleware sets body encoding when specified by server.
77

0 commit comments

Comments
 (0)