turbo_tests 1.4.0 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/{gem-push.yml → tag_and_release.yml} +36 -8
- data/.github/workflows/tests.yml +3 -4
- data/Gemfile.lock +19 -19
- data/README.md +13 -2
- data/lib/turbo_tests/version.rb +1 -1
- data/turbo_tests.gemspec +3 -3
- metadata +17 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '0799077faf665b499dbb66c0ae8c59337a559944c7bab9c6151a65d74ae6e7d4'
|
4
|
+
data.tar.gz: 2c5a723bf7a2cfe9ebb0a0eadbab3572b9e9aee92ee8276e29f136cf8cbf8f32
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c942f5cd7703dfead41cc9cac9d52902e3ee29ec869f02bfbe3b49d91e4a80027fdf4bc1cd8014c41a6757a29a6f0df2580a136d5fa10f4d2babc2850fc8ef4d
|
7
|
+
data.tar.gz: b1ac417107631fbdb8a822253eb60cc676467aace519f2aa8e67c175df38649c5de52d29ab03b5bb19754c9dcc907393d9da5904cf94a21eb45d91bbe321fd06
|
@@ -1,24 +1,30 @@
|
|
1
|
-
name:
|
1
|
+
name: Tag and Release
|
2
2
|
|
3
3
|
on:
|
4
|
+
workflow_dispatch:
|
4
5
|
push:
|
5
|
-
|
6
|
-
-
|
6
|
+
branches:
|
7
|
+
- master
|
8
|
+
paths:
|
9
|
+
- "lib/turbo_tests/version.rb"
|
7
10
|
|
8
11
|
jobs:
|
9
|
-
|
10
|
-
|
12
|
+
release:
|
13
|
+
env:
|
14
|
+
GEM_NAME: turbo_tests
|
15
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
16
|
+
name: Tag and Release
|
11
17
|
runs-on: ubuntu-latest
|
12
18
|
permissions:
|
13
|
-
contents:
|
19
|
+
contents: write
|
14
20
|
packages: write
|
15
21
|
|
16
22
|
steps:
|
17
23
|
- uses: actions/checkout@v3
|
18
|
-
- name: Set up Ruby 2.
|
24
|
+
- name: Set up Ruby 2.7
|
19
25
|
uses: ruby/setup-ruby@v1
|
20
26
|
with:
|
21
|
-
ruby-version: 2.
|
27
|
+
ruby-version: 2.7
|
22
28
|
bundler-cache: true
|
23
29
|
|
24
30
|
- name: Run tests
|
@@ -32,6 +38,28 @@ jobs:
|
|
32
38
|
name: "ruby-gem"
|
33
39
|
path: "pkg/*.gem"
|
34
40
|
|
41
|
+
- name: Configure Git
|
42
|
+
run: |
|
43
|
+
git config --local user.email "actions@github.com"
|
44
|
+
git config --local user.name "Actions Auto Build"
|
45
|
+
|
46
|
+
- name: Get current version
|
47
|
+
id: version-label
|
48
|
+
run: |
|
49
|
+
VERSION=$(grep VERSION lib/turbo_tests/version.rb | head -n 1 | cut -d'"' -f2)
|
50
|
+
echo "version=${VERSION}" >> $GITHUB_OUTPUT
|
51
|
+
|
52
|
+
- name: Create tag
|
53
|
+
run: |
|
54
|
+
git tag -a v${{ steps.version-label.outputs.version }} -m "Release v${{ steps.version-label.outputs.version }}"
|
55
|
+
git push origin --tags
|
56
|
+
|
57
|
+
- name: Publish release
|
58
|
+
env:
|
59
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
60
|
+
run: |
|
61
|
+
gh release create v${{ steps.version-label.outputs.version }} --generate-notes
|
62
|
+
|
35
63
|
- name: Publish to GPR
|
36
64
|
run: |
|
37
65
|
mkdir -p $HOME/.gem
|
data/.github/workflows/tests.yml
CHANGED
@@ -1,10 +1,7 @@
|
|
1
1
|
name: Tests
|
2
2
|
|
3
3
|
on:
|
4
|
-
push:
|
5
|
-
branches: [ "master" ]
|
6
4
|
pull_request:
|
7
|
-
branches: [ "master" ]
|
8
5
|
|
9
6
|
permissions:
|
10
7
|
contents: read
|
@@ -14,14 +11,16 @@ jobs:
|
|
14
11
|
runs-on: ubuntu-latest
|
15
12
|
|
16
13
|
strategy:
|
14
|
+
fail-fast: true
|
17
15
|
matrix:
|
18
|
-
ruby: [ 2.
|
16
|
+
ruby: [ 2.7, 3.0, 3.1, 3.2 ]
|
19
17
|
|
20
18
|
steps:
|
21
19
|
- uses: actions/checkout@v3
|
22
20
|
- uses: ruby/setup-ruby@v1
|
23
21
|
with:
|
24
22
|
ruby-version: ${{matrix.ruby}}
|
23
|
+
rubygems: latest
|
25
24
|
bundler-cache: true
|
26
25
|
|
27
26
|
- name: Run tests
|
data/Gemfile.lock
CHANGED
@@ -1,37 +1,37 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
turbo_tests (
|
4
|
+
turbo_tests (2.0.0)
|
5
5
|
bundler (>= 2.1)
|
6
|
-
parallel_tests (
|
7
|
-
rspec (
|
6
|
+
parallel_tests (>= 3.3.0, < 5)
|
7
|
+
rspec (>= 3.10)
|
8
8
|
|
9
9
|
GEM
|
10
10
|
remote: https://rubygems.org/
|
11
11
|
specs:
|
12
12
|
coderay (1.1.3)
|
13
|
-
diff-lcs (1.
|
13
|
+
diff-lcs (1.5.0)
|
14
14
|
method_source (1.0.0)
|
15
|
-
parallel (1.
|
16
|
-
parallel_tests (
|
15
|
+
parallel (1.22.1)
|
16
|
+
parallel_tests (4.2.0)
|
17
17
|
parallel
|
18
|
-
pry (0.14.
|
18
|
+
pry (0.14.2)
|
19
19
|
coderay (~> 1.1)
|
20
20
|
method_source (~> 1.0)
|
21
21
|
rake (13.0.6)
|
22
|
-
rspec (3.
|
23
|
-
rspec-core (~> 3.
|
24
|
-
rspec-expectations (~> 3.
|
25
|
-
rspec-mocks (~> 3.
|
26
|
-
rspec-core (3.
|
27
|
-
rspec-support (~> 3.
|
28
|
-
rspec-expectations (3.
|
22
|
+
rspec (3.12.0)
|
23
|
+
rspec-core (~> 3.12.0)
|
24
|
+
rspec-expectations (~> 3.12.0)
|
25
|
+
rspec-mocks (~> 3.12.0)
|
26
|
+
rspec-core (3.12.1)
|
27
|
+
rspec-support (~> 3.12.0)
|
28
|
+
rspec-expectations (3.12.2)
|
29
29
|
diff-lcs (>= 1.2.0, < 2.0)
|
30
|
-
rspec-support (~> 3.
|
31
|
-
rspec-mocks (3.
|
30
|
+
rspec-support (~> 3.12.0)
|
31
|
+
rspec-mocks (3.12.4)
|
32
32
|
diff-lcs (>= 1.2.0, < 2.0)
|
33
|
-
rspec-support (~> 3.
|
34
|
-
rspec-support (3.
|
33
|
+
rspec-support (~> 3.12.0)
|
34
|
+
rspec-support (3.12.0)
|
35
35
|
|
36
36
|
PLATFORMS
|
37
37
|
ruby
|
@@ -42,4 +42,4 @@ DEPENDENCIES
|
|
42
42
|
turbo_tests!
|
43
43
|
|
44
44
|
BUNDLED WITH
|
45
|
-
2.4.
|
45
|
+
2.4.6
|
data/README.md
CHANGED
@@ -1,6 +1,17 @@
|
|
1
|
-
|
1
|
+
<h1 align="center">
|
2
|
+
TurboTests
|
3
|
+
</h1>
|
2
4
|
|
3
|
-
|
5
|
+
<div align="center">
|
6
|
+
<img src="https://user-images.githubusercontent.com/78694043/233910064-87a6d557-1120-42d2-b965-2a9403c6f2f4.svg" width="500" alt="Turbo-Tests">
|
7
|
+
|
8
|
+
</div>
|
9
|
+
|
10
|
+
<div align="center">
|
11
|
+
|
12
|
+
![Tests](https://github.com/serpapi/turbo_tests/workflows/Tests/badge.svg)
|
13
|
+
|
14
|
+
</div>
|
4
15
|
|
5
16
|
`turbo_tests` is a drop-in replacement for [`grosser/parallel_tests`](https://github.com/grosser/parallel_tests) with incremental summarized output. Source code of this gem is based on [Discourse](https://github.com/discourse/discourse/blob/6b9784cf8a18636bce281a7e4d18e65a0cbc6290/lib/turbo_tests.rb) and [RubyGems](https://github.com/rubygems/rubygems/tree/390335ceb351668cd433bd5bb9823dd021f82533/bundler/tool) work in this area.
|
6
17
|
|
data/lib/turbo_tests/version.rb
CHANGED
data/turbo_tests.gemspec
CHANGED
@@ -17,10 +17,10 @@ Gem::Specification.new do |spec|
|
|
17
17
|
spec.metadata["source_code_uri"] = "https://github.com/serpapi/turbo_tests"
|
18
18
|
spec.metadata["changelog_uri"] = "https://github.com/serpapi/turbo_tests/releases"
|
19
19
|
|
20
|
-
spec.required_ruby_version = ">= 2.
|
20
|
+
spec.required_ruby_version = ">= 2.7"
|
21
21
|
|
22
|
-
spec.add_dependency "rspec", "
|
23
|
-
spec.add_dependency "parallel_tests", "
|
22
|
+
spec.add_dependency "rspec", ">= 3.10"
|
23
|
+
spec.add_dependency "parallel_tests", ">= 3.3.0", "< 5"
|
24
24
|
|
25
25
|
spec.add_development_dependency "pry", "~> 0.14"
|
26
26
|
|
metadata
CHANGED
@@ -1,43 +1,49 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: turbo_tests
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Illia Zub
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-05-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '3.10'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '3.10'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: parallel_tests
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 3.3.0
|
34
|
+
- - "<"
|
32
35
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
36
|
+
version: '5'
|
34
37
|
type: :runtime
|
35
38
|
prerelease: false
|
36
39
|
version_requirements: !ruby/object:Gem::Requirement
|
37
40
|
requirements:
|
38
|
-
- - "
|
41
|
+
- - ">="
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: 3.3.0
|
44
|
+
- - "<"
|
39
45
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
46
|
+
version: '5'
|
41
47
|
- !ruby/object:Gem::Dependency
|
42
48
|
name: pry
|
43
49
|
requirement: !ruby/object:Gem::Requirement
|
@@ -74,8 +80,8 @@ executables:
|
|
74
80
|
extensions: []
|
75
81
|
extra_rdoc_files: []
|
76
82
|
files:
|
77
|
-
- ".github/workflows/gem-push.yml"
|
78
83
|
- ".github/workflows/snyk_ruby-analysis.yml"
|
84
|
+
- ".github/workflows/tag_and_release.yml"
|
79
85
|
- ".github/workflows/tests.yml"
|
80
86
|
- ".gitignore"
|
81
87
|
- ".rspec"
|
@@ -112,14 +118,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
112
118
|
requirements:
|
113
119
|
- - ">="
|
114
120
|
- !ruby/object:Gem::Version
|
115
|
-
version: '2.
|
121
|
+
version: '2.7'
|
116
122
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
117
123
|
requirements:
|
118
124
|
- - ">="
|
119
125
|
- !ruby/object:Gem::Version
|
120
126
|
version: '0'
|
121
127
|
requirements: []
|
122
|
-
rubygems_version: 3.
|
128
|
+
rubygems_version: 3.1.6
|
123
129
|
signing_key:
|
124
130
|
specification_version: 4
|
125
131
|
summary: "`turbo_tests` is a drop-in replacement for `grosser/parallel_tests` with
|