Skip to content

Commit a1f2aa4

Browse files
committed
1 parent 0308f14 commit a1f2aa4

File tree

7 files changed

+39
-29
lines changed

7 files changed

+39
-29
lines changed

.github/workflows/gem-push.yml

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
name: Ruby Gem
1+
name: Publish Gem
22

33
on:
44
push:
5-
branches: [ $default-branch ]
6-
pull_request:
7-
branches: [ $default-branch ]
5+
tags:
6+
- v**
87

98
jobs:
109
build:
@@ -15,21 +14,31 @@ jobs:
1514
packages: write
1615

1716
steps:
18-
- uses: actions/checkout@v2
17+
- uses: actions/checkout@v3
1918
- name: Set up Ruby 2.6
2019
uses: actions/setup-ruby@v1
2120
with:
2221
ruby-version: 2.6.x
2322
bundler-cache: true
2423

24+
- name: Run tests
25+
run: |
26+
bundle exec rake install:local
27+
bundle install
28+
bundle exec turbo_tests
29+
30+
- uses: actions/upload-artifact@v3
31+
with:
32+
name: "ruby-gem"
33+
path: "pkg/*.gem"
34+
2535
- name: Publish to GPR
2636
run: |
2737
mkdir -p $HOME/.gem
2838
touch $HOME/.gem/credentials
2939
chmod 0600 $HOME/.gem/credentials
3040
printf -- "---\n:github: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
31-
gem build *.gemspec
32-
gem push --KEY github --host https://rubygems.pkg.github.com/${OWNER} *.gem
41+
gem push --KEY github --host https://rubygems.pkg.github.com/${OWNER} pkg/*.gem
3342
env:
3443
GEM_HOST_API_KEY: "Bearer ${{secrets.GITHUB_TOKEN}}"
3544
OWNER: ${{ github.repository_owner }}
@@ -40,7 +49,6 @@ jobs:
4049
touch $HOME/.gem/credentials
4150
chmod 0600 $HOME/.gem/credentials
4251
printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
43-
gem build *.gemspec
44-
gem push *.gem
52+
gem push pkg/*.gem
4553
env:
46-
GEM_HOST_API_KEY: "${{secrets.RUBYGEMS_AUTH_TOKEN}}"
54+
GEM_HOST_API_KEY: "${{secrets.RUBYGEMS_API_KEY}}"

.github/workflows/snyk_ruby-analysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
snyk:
2121
runs-on: ubuntu-latest
2222
steps:
23-
- uses: actions/checkout@v2
23+
- uses: actions/checkout@v3
2424
- name: Run Snyk to check configuration files for security issues
2525
# Snyk can be used to break the build when it detects security issues.
2626
# In this case we want to upload the issues to GitHub Code Scanning

.github/workflows/tests.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,24 @@
11
name: Tests
22

3-
on: [push, pull_request]
3+
on:
4+
push:
5+
branches: [ "master" ]
6+
pull_request:
7+
branches: [ "master" ]
8+
9+
permissions:
10+
contents: read
411

512
jobs:
613
test:
714
runs-on: ubuntu-latest
815

916
strategy:
1017
matrix:
11-
ruby:
12-
- 2.6
13-
- 2.7
18+
ruby: [ 2.6, 2.7, 3.0, 3.1, 3.2 ]
1419

1520
steps:
16-
- uses: actions/checkout@v2
21+
- uses: actions/checkout@v3
1722
- uses: ruby/setup-ruby@v1
1823
with:
1924
ruby-version: ${{matrix.ruby}}

.travis.yml

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

Gemfile.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
PATH
22
remote: .
33
specs:
4-
turbo_tests (1.3.0)
5-
bundler
4+
turbo_tests (1.4.0)
5+
bundler (>= 2.1)
66
parallel_tests (~> 3.3)
77
rspec (~> 3.10)
88

lib/turbo_tests/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module TurboTests
2-
VERSION = "1.3.0"
2+
VERSION = "1.4.0"
33
end

turbo_tests.gemspec

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,25 +3,28 @@ require_relative "lib/turbo_tests/version"
33
Gem::Specification.new do |spec|
44
spec.name = "turbo_tests"
55
spec.version = TurboTests::VERSION
6-
spec.authors = ["Ilya Zub"]
7-
spec.email = ["[email protected]"]
6+
spec.platform = Gem::Platform::RUBY
7+
spec.date = Time.now.strftime('%Y-%m-%d')
88

99
spec.summary = "`turbo_tests` is a drop-in replacement for `grosser/parallel_tests` with incremental summarized output. Source code of `turbo_test` gem is based on Discourse and Rubygems work in this area (see README file of the source repository)."
1010
spec.homepage = "https://github.com/serpapi/turbo_tests"
1111
spec.license = "MIT"
1212

13+
spec.authors = ["Illia Zub"]
14+
spec.email = ["[email protected]"]
15+
1316
spec.metadata["homepage_uri"] = spec.homepage
1417
spec.metadata["source_code_uri"] = "https://github.com/serpapi/turbo_tests"
1518
spec.metadata["changelog_uri"] = "https://github.com/serpapi/turbo_tests/releases"
1619

17-
spec.required_ruby_version = ">= 2.4"
20+
spec.required_ruby_version = ">= 2.6"
1821

1922
spec.add_dependency "rspec", "~> 3.10"
2023
spec.add_dependency "parallel_tests", "~> 3.3"
2124

2225
spec.add_development_dependency "pry", "~> 0.14"
2326

24-
spec.add_runtime_dependency "bundler"
27+
spec.add_runtime_dependency "bundler", ">= 2.1"
2528

2629
# Specify which files should be added to the gem when it is released.
2730
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.

0 commit comments

Comments
 (0)