turbo_tests 1.4.1 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 60c3ddbe013dcaaec1580e1125e053efdd039438a650ccc6c0405c268f32f584
4
- data.tar.gz: c6d6c1ed7fe70925175ccf477ef9a07f6c4360e187b978f148f7d41cc6418ac0
3
+ metadata.gz: '0799077faf665b499dbb66c0ae8c59337a559944c7bab9c6151a65d74ae6e7d4'
4
+ data.tar.gz: 2c5a723bf7a2cfe9ebb0a0eadbab3572b9e9aee92ee8276e29f136cf8cbf8f32
5
5
  SHA512:
6
- metadata.gz: 6f92140b425152f613350967ea189263a197d6dee6b098bc9c33757efde25a12298b2849184273ecf85ffcbad82d862f0adbe2c9c568734aab62290121be44d1
7
- data.tar.gz: 5fa7338d979a912ae1f880833aa7db32eecbb07198c8024408d608c4380da5ae0b4ebc1d2aead992e4d80714cd09f6f0079d18d2c89282097890439f33d07128
6
+ metadata.gz: c942f5cd7703dfead41cc9cac9d52902e3ee29ec869f02bfbe3b49d91e4a80027fdf4bc1cd8014c41a6757a29a6f0df2580a136d5fa10f4d2babc2850fc8ef4d
7
+ data.tar.gz: b1ac417107631fbdb8a822253eb60cc676467aace519f2aa8e67c175df38649c5de52d29ab03b5bb19754c9dcc907393d9da5904cf94a21eb45d91bbe321fd06
@@ -1,24 +1,30 @@
1
- name: Publish Gem
1
+ name: Tag and Release
2
2
 
3
3
  on:
4
+ workflow_dispatch:
4
5
  push:
5
- tags:
6
- - v**
6
+ branches:
7
+ - master
8
+ paths:
9
+ - "lib/turbo_tests/version.rb"
7
10
 
8
11
  jobs:
9
- build:
10
- name: Build + Publish
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: read
19
+ contents: write
14
20
  packages: write
15
21
 
16
22
  steps:
17
23
  - uses: actions/checkout@v3
18
- - name: Set up Ruby 2.6
24
+ - name: Set up Ruby 2.7
19
25
  uses: ruby/setup-ruby@v1
20
26
  with:
21
- ruby-version: 2.6
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
@@ -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.6, 2.7, 3.0, 3.1, 3.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,9 +1,9 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- turbo_tests (1.4.1)
4
+ turbo_tests (2.0.0)
5
5
  bundler (>= 2.1)
6
- parallel_tests (~> 3.3)
6
+ parallel_tests (>= 3.3.0, < 5)
7
7
  rspec (>= 3.10)
8
8
 
9
9
  GEM
@@ -12,10 +12,10 @@ GEM
12
12
  coderay (1.1.3)
13
13
  diff-lcs (1.5.0)
14
14
  method_source (1.0.0)
15
- parallel (1.21.0)
16
- parallel_tests (3.7.3)
15
+ parallel (1.22.1)
16
+ parallel_tests (4.2.0)
17
17
  parallel
18
- pry (0.14.1)
18
+ pry (0.14.2)
19
19
  coderay (~> 1.1)
20
20
  method_source (~> 1.0)
21
21
  rake (13.0.6)
@@ -28,7 +28,7 @@ GEM
28
28
  rspec-expectations (3.12.2)
29
29
  diff-lcs (>= 1.2.0, < 2.0)
30
30
  rspec-support (~> 3.12.0)
31
- rspec-mocks (3.12.3)
31
+ rspec-mocks (3.12.4)
32
32
  diff-lcs (>= 1.2.0, < 2.0)
33
33
  rspec-support (~> 3.12.0)
34
34
  rspec-support (3.12.0)
@@ -42,4 +42,4 @@ DEPENDENCIES
42
42
  turbo_tests!
43
43
 
44
44
  BUNDLED WITH
45
- 2.4.4
45
+ 2.4.6
data/README.md CHANGED
@@ -1,6 +1,17 @@
1
- ![Tests](https://github.com/serpapi/turbo_tests/workflows/Tests/badge.svg)
1
+ <h1 align="center">
2
+ TurboTests
3
+ </h1>
2
4
 
3
- # TurboTests
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
 
@@ -1,3 +1,3 @@
1
1
  module TurboTests
2
- VERSION = "1.4.1"
2
+ VERSION = "2.0.0"
3
3
  end
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.6"
20
+ spec.required_ruby_version = ">= 2.7"
21
21
 
22
22
  spec.add_dependency "rspec", ">= 3.10"
23
- spec.add_dependency "parallel_tests", "~> 3.3"
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,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: turbo_tests
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.1
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-02-15 00:00:00.000000000 Z
11
+ date: 2023-05-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -28,16 +28,22 @@ dependencies:
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: '3.3'
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: '3.3'
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.6'
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.0.3.1
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