Skip to content

Commit 259aa19

Browse files
authored
Merge pull request #32 from apptweak/devex/update_to_the_latest
Update our pronto-ruby to the latest (based on Renato's work)
2 parents dd93f00 + ab99f11 commit 259aa19

20 files changed

+845
-410
lines changed

.github/dependabot.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,16 @@ updates:
44
directory: "/"
55
schedule:
66
interval: monthly
7-
open-pull-requests-limit: 10
7+
open-pull-requests-limit: 10
8+
ignore:
9+
- dependency-name: pry
10+
versions:
11+
- ">= 0.13.a"
12+
- "< 0.14"
13+
groups:
14+
rubocop-dependencies:
15+
patterns:
16+
- "rubocop*"
17+
pronto-dependencies:
18+
patterns:
19+
- "pronto*"
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
name: Build and publish docker image
2+
on:
3+
workflow_dispatch:
4+
push:
5+
branches:
6+
- main
7+
- use_head_commit
8+
tags:
9+
# any tag names starting with 'v'
10+
- 'v*'
11+
env:
12+
REGISTRY: ghcr.io
13+
IMAGE_NAME: ${{ github.repository }}
14+
15+
jobs:
16+
build:
17+
runs-on: ubuntu-latest
18+
permissions:
19+
contents: read
20+
# Gives the action the ability to mint the OIDC token necessary to request a Sigstore signing certificate
21+
id-token: write
22+
# Permission necessary to persist the attestation
23+
attestations: write
24+
steps:
25+
- name: Checkout repository
26+
uses: actions/checkout@v4
27+
- name: Set-up Docker Buildx
28+
uses: docker/setup-buildx-action@v3
29+
with:
30+
platforms: linux/amd64
31+
- name: Log in to the Github Container registry
32+
uses: docker/login-action@v3
33+
with:
34+
registry: ${{ env.REGISTRY }}
35+
username: ${{ github.actor }}
36+
password: ${{ secrets.GITHUB_TOKEN }}
37+
- name: Extract metadata (tags, labels) for Docker
38+
id: meta
39+
uses: docker/metadata-action@v5
40+
with:
41+
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
42+
tags: |
43+
type=ref,event=branch
44+
type=ref,event=pr
45+
type=semver,pattern={{version}}
46+
type=semver,pattern={{major}}.{{minor}}
47+
- name: Build and push Docker image
48+
id: push
49+
uses: docker/build-push-action@v6
50+
with:
51+
context: .
52+
push: true
53+
tags: ${{ steps.meta.outputs.tags }}
54+
labels: ${{ steps.meta.outputs.labels }}
55+
- name: Generate artifact attestation
56+
uses: actions/attest-build-provenance@v2
57+
with:
58+
subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME}}
59+
subject-digest: ${{ steps.push.outputs.digest }}
60+
push-to-registry: true

.github/workflows/hadolint.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Hadolint - Dockerfile linting
2+
on:
3+
workflow_dispatch:
4+
pull_request:
5+
types: [opened, synchronize]
6+
paths:
7+
- "Dockerfile"
8+
jobs:
9+
hadolint:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
- uses: hadolint/hadolint-action@v3.1.0
14+
with:
15+
verbose: true

.github/workflows/run-specs.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Specs
2+
3+
on:
4+
push:
5+
6+
jobs:
7+
spec:
8+
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Install packages
12+
run: sudo apt-get update && sudo apt-get install --no-install-recommends -y libjemalloc2
13+
- uses: actions/checkout@v6
14+
- name: Set up Ruby
15+
# To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
16+
# change this to (see https://github.com/ruby/setup-ruby#versioning):
17+
uses: ruby/setup-ruby@v1
18+
with:
19+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
20+
- name: Unpack test repo
21+
run: cd spec/fixtures && tar -zxf test.git.tar.gz
22+
- name: Run tests
23+
run: bundle exec rspec

.github/workflows/self.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,18 @@ on:
55

66
jobs:
77
run:
8+
permissions:
9+
checks: write
10+
contents: read
811
runs-on: ubuntu-latest
912
steps:
10-
- uses: actions/checkout@v1
13+
- uses: actions/checkout@v4
14+
- run: git fetch origin main
1115
- name: Pronto Run
1216
uses: ./
1317
with:
1418
target: origin/main
1519
runners: >-
16-
rubocop bundler_audit brakeman yamllint
20+
rubocop brakeman
1721
env:
1822
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,9 @@ build-iPhoneSimulator/
4949

5050
# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
5151
.rvmrc
52+
53+
## Specific to RubyMine
54+
.idea
55+
56+
## Specific to asdf
57+
.tool-versions

.hadolint.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# list of rules: https://github.com/hadolint/hadolint/wiki
2+
ignored:
3+
- DL3008 # Pin versions in apt-get install - https://github.com/hadolint/hadolint/wiki/DL3008
4+
# - DL3018 # Pin versions in apk add - https://github.com/hadolint/hadolint/wiki/DL3018
5+
# - DL3028 # Pin version in gem install - https://github.com/hadolint/hadolint/wiki/DL3028
6+
7+
trustedRegistries:
8+
- docker.io
9+
- "*.gcr.io"
10+
- "*.ecr.eu-west-1.amazonaws.com"
11+
12+
override:
13+
warning:
14+
- DL3028 # Pin version in gem install - https://github.com/hadolint/hadolint/wiki/DL3028

.rubocop.yml

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
plugins:
2+
- rubocop-capybara
3+
- rubocop-factory_bot
4+
- rubocop-minitest
5+
- rubocop-performance
6+
- rubocop-rake
7+
- rubocop-sequel
8+
- rubocop-yard
9+
10+
AllCops:
11+
NewCops: enable
12+
DisplayStyleGuide: true
13+
14+
Metrics:
15+
Enabled: false
16+
17+
Layout/LineLength:
18+
Enabled: false
19+
20+
# Align `end` with the matching keyword or starting expression except for
21+
# assignments, where it should be aligned with the LHS.
22+
Layout/EndAlignment:
23+
EnforcedStyleAlignWith: variable
24+
25+
# Method definitions after `private` or `protected` isolated calls need one
26+
# extra level of indentation.
27+
Layout/IndentationConsistency:
28+
EnforcedStyle: indented_internal_methods
29+
30+
Style/FrozenStringLiteralComment:
31+
EnforcedStyle: always
32+
33+
# Use `foo { bar }` not `foo {bar}`.
34+
Layout/SpaceInsideBlockBraces:
35+
EnforcedStyleForEmptyBraces: space
36+
37+
# Check quotes usage according to lint rule below.
38+
Style/StringLiterals:
39+
EnforcedStyle: double_quotes
40+
41+
Style/RedundantReturn:
42+
AllowMultipleReturnValues: true
43+
44+
Style/Semicolon:
45+
AllowAsExpressionSeparator: true
46+
47+
Style/StringLiteralsInInterpolation:
48+
EnforcedStyle: double_quotes
49+
50+
Style/RescueStandardError:
51+
EnforcedStyle: implicit
52+
53+
Style/SymbolArray:
54+
MinSize: 1
55+
56+
Style/DocumentationMethod:
57+
Enabled: true
58+
RequireForNonPublicMethods: true
59+
60+
YARD/MismatchName:
61+
EnforcedStylePrototypeName: before

.ruby-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.3.7
1+
3.4.8

CHANGELOG.md

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,83 @@
1+
4.6-r | 2025-11-28
2+
---
3+
Changes
4+
* Upgrade ruby to 3.3.x by @renatolond in https://github.com/renatolond/pronto-ruby/pull/70
5+
* Upgrade ruby to 3.4.7 by @renatolond in https://github.com/renatolond/pronto-ruby/pull/71
6+
7+
4.5-r | 2025-11-28
8+
---
9+
Changes
10+
* Bump rubocop-rails from 2.32.0 to 2.33.0 in the rubocop-dependencies group by @dependabot[bot] in https://github.com/renatolond/pronto-ruby/pull/57
11+
* Bump rubocop-rails from 2.33.0 to 2.33.3 in the rubocop-dependencies group by @dependabot[bot] in https://github.com/renatolond/pronto-ruby/pull/58
12+
* Bump the rubocop-dependencies group with 2 updates by @dependabot[bot] in https://github.com/renatolond/pronto-ruby/pull/59
13+
* Bump rubocop-performance from 1.25.0 to 1.26.0 in the rubocop-dependencies group by @dependabot[bot] in https://github.com/renatolond/pronto-ruby/pull/60
14+
* Bump rubocop-rails from 2.33.3 to 2.33.4 in the rubocop-dependencies group by @dependabot[bot] in https://github.com/renatolond/pronto-ruby/pull/61
15+
* Bump rubocop-performance from 1.26.0 to 1.26.1 in the rubocop-dependencies group by @dependabot[bot] in https://github.com/renatolond/pronto-ruby/pull/62
16+
* Bump rspec from 3.13.1 to 3.13.2 by @dependabot[bot] in https://github.com/renatolond/pronto-ruby/pull/63
17+
* Bump webmock from 3.25.1 to 3.26.0 by @dependabot[bot] in https://github.com/renatolond/pronto-ruby/pull/64
18+
* Bump webmock from 3.26.0 to 3.26.1 by @dependabot[bot] in https://github.com/renatolond/pronto-ruby/pull/65
19+
* Bump the rubocop-dependencies group with 2 updates by @dependabot[bot] in https://github.com/renatolond/pronto-ruby/pull/66
20+
* Bump rubocop-rails from 2.33.4 to 2.34.0 in the rubocop-dependencies group by @dependabot[bot] in https://github.com/renatolond/pronto-ruby/pull/67
21+
* Bump rubocop-rails from 2.34.0 to 2.34.1 in the rubocop-dependencies group by @dependabot[bot] in https://github.com/renatolond/pronto-ruby/pull/68
22+
23+
4.4-r | 2025-06-30
24+
---
25+
Changes
26+
* Bump rubocop-rspec from 3.5.0 to 3.6.0 in the rubocop-dependencies group by @dependabot in https://github.com/renatolond/pronto-ruby/pull/49
27+
* Bump the pronto-dependencies group across 1 directory with 2 updates by @dependabot in https://github.com/renatolond/pronto-ruby/pull/51
28+
* Bump rubocop-rails from 2.31.0 to 2.32.0 in the rubocop-dependencies group by @dependabot in https://github.com/renatolond/pronto-ruby/pull/52
29+
* Bump rspec from 3.13.0 to 3.13.1 by @dependabot in https://github.com/renatolond/pronto-ruby/pull/53
30+
* Bump rubocop-minitest from 0.38.0 to 0.38.1 in the rubocop-dependencies group by @dependabot in https://github.com/renatolond/pronto-ruby/pull/54
31+
* Bump rubocop-thread_safety from 0.7.2 to 0.7.3 in the rubocop-dependencies group by @dependabot in https://github.com/renatolond/pronto-ruby/pull/55
32+
* Bump rubocop-yard from 0.10.0 to 1.0.0 in the rubocop-dependencies group by @dependabot in https://github.com/renatolond/pronto-ruby/pull/56
33+
34+
4.3-r | 2025-04-01
35+
---
36+
Changes
37+
* Bump rubocop-rails from 2.28.0 to 2.29.0 in the rubocop-dependencies group by @dependabot in https://github.com/renatolond/pronto-ruby/pull/33
38+
* Bump pronto-stylelint from 0.10.3 to 0.11.0 in the pronto-dependencies group by @dependabot in https://github.com/renatolond/pronto-ruby/pull/34
39+
* Bump the rubocop-dependencies group with 2 updates by @dependabot in https://github.com/renatolond/pronto-ruby/pull/35
40+
* Update checkout version in workflow by @renatolond in https://github.com/renatolond/pronto-ruby/pull/36
41+
* Bump rubocop-rails from 2.29.0 to 2.29.1 in the rubocop-dependencies group by @dependabot in https://github.com/renatolond/pronto-ruby/pull/37
42+
* Bump webmock from 3.24.0 to 3.25.0 by @dependabot in https://github.com/renatolond/pronto-ruby/pull/38
43+
* Bump the rubocop-dependencies group with 5 updates by @dependabot in https://github.com/renatolond/pronto-ruby/pull/39
44+
* Bump the rubocop-dependencies group across 1 directory with 6 updates by @dependabot in https://github.com/renatolond/pronto-ruby/pull/45
45+
* Bump webmock from 3.25.0 to 3.25.1 by @dependabot in https://github.com/renatolond/pronto-ruby/pull/44
46+
* Bump the rubocop-dependencies group with 7 updates by @dependabot in https://github.com/renatolond/pronto-ruby/pull/46
47+
* Bump ruby to 3.2.8 by @renatolond in https://github.com/renatolond/pronto-ruby/pull/48
48+
49+
4.2-r | 2025-01-13
50+
---
51+
Changes:
52+
* Bump the pronto-dependencies group with 4 updates by @dependabot in https://github.com/renatolond/pronto-ruby/pull/30
53+
* Bump the rubocop-dependencies group across 1 directory with 5 updates by @dependabot in https://github.com/renatolond/pronto-ruby/pull/29
54+
* Add rubocop-capybara gem by @renatolond in https://github.com/renatolond/pronto-ruby/pull/31
55+
* Bump ruby to 3.2.6 by @renatolond in https://github.com/renatolond/pronto-ruby/pull/32
56+
57+
4.1-r | 2024-11-13
58+
---
59+
Changes:
60+
* Bump the rubocop-dependencies group with 2 updates by @dependabot in #16
61+
* Bump rspec from 3.11.0 to 3.13.0 by @dependabot in #13
62+
* Bump webmock from 3.23.1 to 3.24.0 by @dependabot in #18
63+
* Bump the rubocop-dependencies group across 1 directory with 4 updates by @dependabot in #23
64+
65+
4.0-r | 2024-09-18
66+
---
67+
**BREAKING CHANGES:**
68+
69+
* Unlike the original action, this fork is focused on Ruby-only. This means any node-related runners are removed.
70+
71+
* Pronto is upgraded, the following runners are not yet compatible and therefore removed:
72+
- pronto-bundler_audit
73+
- pronto-yamllint
74+
75+
Changes:
76+
* Upgrades ruby to 3.2.2
77+
* Upgrades Bundler to 2.4.3
78+
* Bump rubocop to 1.66.1
79+
* Upgrades all runners and dependencies
80+
181
4.0 | 2022-03-17
282
---
383

0 commit comments

Comments
 (0)