rspec-github-actions-formatter 0.1.3 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/workflows/gem-push.yml +44 -0
- data/Gemfile +2 -1
- data/Gemfile.lock +15 -15
- data/lib/rspec_github_actions_formatter.rb +8 -5
- data/renovate.json +5 -0
- data/rspec-github-actions-formatter.gemspec +4 -4
- metadata +7 -19
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ccc1b831bb00fad81b56e8c5bb029c282cf0b7613d05e7808461c86f3a9c543d
|
4
|
+
data.tar.gz: 1e3164599b10a7646f3954b4aa4372a24a097dafc6523db9bbf90ee8a4ffe9a4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d3a89e0035fef388cc059d20c0a3cf5b17ce0db23cca99e4c0f25419b68f7a62bccc319bb2c03aeaa9ae74482c978624fc46cad4e6a01d947af05fc6ac26bd13
|
7
|
+
data.tar.gz: ea0621b86063fa9b2bf81fa6a7c2d2a23b70116e01dfbac4b68ab79c73ee15fe0d6d37d7f0ca6c8f12298180454921fd881dc870800ff514526b3dd5223c3b1c
|
@@ -0,0 +1,44 @@
|
|
1
|
+
name: Ruby Gem
|
2
|
+
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
branches: [ main ]
|
6
|
+
|
7
|
+
jobs:
|
8
|
+
build:
|
9
|
+
name: Release
|
10
|
+
runs-on: ubuntu-latest
|
11
|
+
permissions:
|
12
|
+
contents: read
|
13
|
+
packages: write
|
14
|
+
|
15
|
+
steps:
|
16
|
+
- uses: actions/checkout@v2
|
17
|
+
- name: Set up Ruby 2.7
|
18
|
+
uses: ruby/setup-ruby@v1
|
19
|
+
with:
|
20
|
+
ruby-version: 2.7
|
21
|
+
bundler-cache: true
|
22
|
+
|
23
|
+
- name: Publish to GPR
|
24
|
+
run: |
|
25
|
+
mkdir -p $HOME/.gem
|
26
|
+
touch $HOME/.gem/credentials
|
27
|
+
chmod 0600 $HOME/.gem/credentials
|
28
|
+
printf -- "---\n:github: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
|
29
|
+
gem build *.gemspec
|
30
|
+
gem push --KEY github --host https://rubygems.pkg.github.com/${OWNER} *.gem
|
31
|
+
env:
|
32
|
+
GEM_HOST_API_KEY: "Bearer ${{secrets.GITHUB_TOKEN}}"
|
33
|
+
OWNER: ${{ github.repository_owner }}
|
34
|
+
|
35
|
+
- name: Publish to RubyGems
|
36
|
+
run: |
|
37
|
+
mkdir -p $HOME/.gem
|
38
|
+
touch $HOME/.gem/credentials
|
39
|
+
chmod 0600 $HOME/.gem/credentials
|
40
|
+
printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
|
41
|
+
gem build *.gemspec
|
42
|
+
gem push *.gem
|
43
|
+
env:
|
44
|
+
GEM_HOST_API_KEY: "${{secrets.RUBYGEMS_AUTH_TOKEN}}"
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,33 +1,33 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
rspec-github-actions-formatter (0.
|
5
|
-
rspec (~> 3.9.0)
|
4
|
+
rspec-github-actions-formatter (0.2.0)
|
6
5
|
|
7
6
|
GEM
|
8
7
|
remote: https://rubygems.org/
|
9
8
|
specs:
|
10
9
|
diff-lcs (1.4.4)
|
11
|
-
rake (
|
12
|
-
rspec (3.
|
13
|
-
rspec-core (~> 3.
|
14
|
-
rspec-expectations (~> 3.
|
15
|
-
rspec-mocks (~> 3.
|
16
|
-
rspec-core (3.
|
17
|
-
rspec-support (~> 3.
|
18
|
-
rspec-expectations (3.
|
10
|
+
rake (13.0.3)
|
11
|
+
rspec (3.10.0)
|
12
|
+
rspec-core (~> 3.10.0)
|
13
|
+
rspec-expectations (~> 3.10.0)
|
14
|
+
rspec-mocks (~> 3.10.0)
|
15
|
+
rspec-core (3.10.1)
|
16
|
+
rspec-support (~> 3.10.0)
|
17
|
+
rspec-expectations (3.10.1)
|
19
18
|
diff-lcs (>= 1.2.0, < 2.0)
|
20
|
-
rspec-support (~> 3.
|
21
|
-
rspec-mocks (3.
|
19
|
+
rspec-support (~> 3.10.0)
|
20
|
+
rspec-mocks (3.10.2)
|
22
21
|
diff-lcs (>= 1.2.0, < 2.0)
|
23
|
-
rspec-support (~> 3.
|
24
|
-
rspec-support (3.
|
22
|
+
rspec-support (~> 3.10.0)
|
23
|
+
rspec-support (3.10.2)
|
25
24
|
|
26
25
|
PLATFORMS
|
27
26
|
ruby
|
28
27
|
|
29
28
|
DEPENDENCIES
|
30
|
-
rake (~>
|
29
|
+
rake (~> 13.0)
|
30
|
+
rspec (~> 3.9)
|
31
31
|
rspec-github-actions-formatter!
|
32
32
|
|
33
33
|
BUNDLED WITH
|
@@ -1,7 +1,8 @@
|
|
1
|
+
require "rspec/core"
|
1
2
|
require "rspec/core/formatters/progress_formatter"
|
2
3
|
|
3
4
|
class RspecGithubActionsFormatter < RSpec::Core::Formatters::ProgressFormatter
|
4
|
-
VERSION = "0.
|
5
|
+
VERSION = "0.2.0"
|
5
6
|
|
6
7
|
RSpec::Core::Formatters.register self, :dump_pending, :dump_failures, :example_passed, :example_pending, :example_failed, :example_started, :start
|
7
8
|
|
@@ -102,11 +103,13 @@ class RspecGithubActionsFormatter < RSpec::Core::Formatters::ProgressFormatter
|
|
102
103
|
location.delete_prefix("./").split(":")
|
103
104
|
end
|
104
105
|
|
105
|
-
# If it says less than 80 columns, don't accept it.
|
106
|
-
# GitHub Actions seems to set it to something silly like 40 characters, and I
|
107
|
-
# haven't yet figured out why. Help welcome!
|
108
106
|
def terminal_width
|
109
|
-
|
107
|
+
@terminal_width ||= begin
|
108
|
+
require "io/console"
|
109
|
+
IO.console.winsize[1]
|
110
|
+
rescue LoadError, NoMethodError
|
111
|
+
ENV["COLUMNS"].to_i.nonzero? || 80
|
112
|
+
end
|
110
113
|
end
|
111
114
|
|
112
115
|
def progress_display(executed_examples, total_examples)
|
@@ -1,6 +1,8 @@
|
|
1
|
+
require_relative "lib/rspec_github_actions_formatter"
|
2
|
+
|
1
3
|
Gem::Specification.new do |spec|
|
2
4
|
spec.name = "rspec-github-actions-formatter"
|
3
|
-
spec.version =
|
5
|
+
spec.version = RspecGithubActionsFormatter::VERSION
|
4
6
|
spec.authors = ["Steve Hill"]
|
5
7
|
spec.email = ["steve@stevehill.xyz"]
|
6
8
|
|
@@ -8,7 +10,7 @@ Gem::Specification.new do |spec|
|
|
8
10
|
spec.description = %q{This custom formatter provides a line-streaming output for RSpec, and will also output annotations from any pending, skipped or failing tests in the format GitHub Actions requires.}
|
9
11
|
spec.homepage = "https://github.com/stevehill1981/rspec-github-actions-formatter"
|
10
12
|
spec.license = "MIT"
|
11
|
-
spec.required_ruby_version = Gem::Requirement.new(">= 2.
|
13
|
+
spec.required_ruby_version = Gem::Requirement.new(">= 2.7.0")
|
12
14
|
|
13
15
|
spec.metadata["homepage_uri"] = spec.homepage
|
14
16
|
spec.metadata["source_code_uri"] = spec.homepage
|
@@ -22,6 +24,4 @@ Gem::Specification.new do |spec|
|
|
22
24
|
spec.bindir = "exe"
|
23
25
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
24
26
|
spec.require_paths = ["lib"]
|
25
|
-
|
26
|
-
spec.add_dependency "rspec", "~> 3.9.0"
|
27
27
|
end
|
metadata
CHANGED
@@ -1,29 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec-github-actions-formatter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Steve Hill
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
12
|
-
dependencies:
|
13
|
-
- !ruby/object:Gem::Dependency
|
14
|
-
name: rspec
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - "~>"
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: 3.9.0
|
20
|
-
type: :runtime
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - "~>"
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: 3.9.0
|
11
|
+
date: 2021-11-06 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
27
13
|
description: This custom formatter provides a line-streaming output for RSpec, and
|
28
14
|
will also output annotations from any pending, skipped or failing tests in the format
|
29
15
|
GitHub Actions requires.
|
@@ -33,6 +19,7 @@ executables: []
|
|
33
19
|
extensions: []
|
34
20
|
extra_rdoc_files: []
|
35
21
|
files:
|
22
|
+
- ".github/workflows/gem-push.yml"
|
36
23
|
- ".gitignore"
|
37
24
|
- CHANGELOG.md
|
38
25
|
- CODE_OF_CONDUCT.md
|
@@ -43,6 +30,7 @@ files:
|
|
43
30
|
- Rakefile
|
44
31
|
- bin/setup
|
45
32
|
- lib/rspec_github_actions_formatter.rb
|
33
|
+
- renovate.json
|
46
34
|
- rspec-github-actions-formatter.gemspec
|
47
35
|
homepage: https://github.com/stevehill1981/rspec-github-actions-formatter
|
48
36
|
licenses:
|
@@ -59,14 +47,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
59
47
|
requirements:
|
60
48
|
- - ">="
|
61
49
|
- !ruby/object:Gem::Version
|
62
|
-
version: 2.
|
50
|
+
version: 2.7.0
|
63
51
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
64
52
|
requirements:
|
65
53
|
- - ">="
|
66
54
|
- !ruby/object:Gem::Version
|
67
55
|
version: '0'
|
68
56
|
requirements: []
|
69
|
-
rubygems_version: 3.1.
|
57
|
+
rubygems_version: 3.1.4
|
70
58
|
signing_key:
|
71
59
|
specification_version: 4
|
72
60
|
summary: RSpec formatter for use with GitHub Actions.
|