Skip to content

Commit fc6fb08

Browse files
committed
convert from travis to github actions
1 parent 5aa655d commit fc6fb08

File tree

5 files changed

+39
-25
lines changed

5 files changed

+39
-25
lines changed

.github/workflows/ci.yml

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Tests
2+
on: [push, pull_request]
3+
jobs:
4+
test:
5+
strategy:
6+
fail-fast: false
7+
matrix:
8+
os: [ubuntu-latest]
9+
ruby: [2.6, 2.7, '3.0']
10+
runs-on: ${{ matrix.os }}
11+
env:
12+
TWITTER_CONSUMER_KEY: ${{ secrets.TWITTER_CONSUMER_KEY }}
13+
TWITTER_CONSUMER_SECRET: ${{ secrets.TWITTER_CONSUMER_SECRET }}
14+
TWITTER_ACCESS_TOKEN: ${{ secrets.TWITTER_ACCESS_TOKEN }}
15+
TWITTER_ACCESS_TOKEN_SECRET: ${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }}
16+
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
17+
steps:
18+
- if: matrix.os == 'ubuntu-latest'
19+
run: sudo apt-get install -y fortune
20+
- uses: actions/checkout@v2
21+
- uses: ruby/setup-ruby@v1
22+
with:
23+
ruby-version: ${{ matrix.ruby }}
24+
bundler-cache: true
25+
- run: bundle exec rake
26+
- if: matrix.os == 'ubuntu-latest' && matrix.ruby == '3.0'
27+
run: |
28+
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
29+
chmod +x ./cc-test-reporter
30+
./cc-test-reporter after-build

.travis.yml

-16
This file was deleted.

Gemfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ gem 'rake'
99

1010
# Testing
1111
gem 'rspec', '~>3.0'
12-
gem 'simplecov'
12+
gem 'simplecov', '< 0.18'
1313
gem 'vcr'
1414
gem 'webmock'
1515

Gemfile.lock

+7-7
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ GEM
2424
crack (0.4.5)
2525
rexml
2626
diff-lcs (1.4.4)
27-
docile (1.3.5)
27+
docile (1.4.0)
2828
domain_name (0.5.20190701)
2929
unf (>= 0.0.5, < 1.0.0)
3030
e2mmap (0.1.0)
@@ -46,6 +46,7 @@ GEM
4646
ffi-compiler (>= 1.0, < 2.0)
4747
http_parser.rb (0.6.0)
4848
jaro_winkler (1.5.4)
49+
json (2.6.1)
4950
kramdown (2.3.1)
5051
rexml
5152
kramdown-parser-gfm (1.1.0)
@@ -113,12 +114,11 @@ GEM
113114
rubocop-ast (>= 0.7.1)
114115
ruby-progressbar (1.11.0)
115116
simple_oauth (0.3.1)
116-
simplecov (0.21.2)
117+
simplecov (0.17.1)
117118
docile (~> 1.1)
118-
simplecov-html (~> 0.11)
119-
simplecov_json_formatter (~> 0.1)
120-
simplecov-html (0.12.3)
121-
simplecov_json_formatter (0.1.2)
119+
json (>= 1.8, < 3)
120+
simplecov-html (~> 0.10.0)
121+
simplecov-html (0.10.2)
122122
solargraph (0.40.2)
123123
backport (~> 1.1)
124124
benchmark
@@ -174,7 +174,7 @@ DEPENDENCIES
174174
rubocop (= 0.92)
175175
rubocop-rake
176176
rubocop-rspec
177-
simplecov
177+
simplecov (< 0.18)
178178
solargraph
179179
vcr
180180
webmock

README.md

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

33
[![Maintainability](https://api.codeclimate.com/v1/badges/73443845cac0dadff540/maintainability)](https://codeclimate.com/github/claytron/augury/maintainability)
44
[![Test Coverage](https://api.codeclimate.com/v1/badges/73443845cac0dadff540/test_coverage)](https://codeclimate.com/github/claytron/augury/test_coverage)
5-
[![Tests](https://travis-ci.com/claytron/augury.svg?branch=master)](https://travis-ci.com/github/claytron/augury)
5+
![Tests](https://github.com/claytron/augury/actions/workflows/ci.yml/badge.svg)
66

77
Have you ever wanted to turn a twitter account into a fortune file?
88
Well, today is your lucky day!

0 commit comments

Comments
 (0)