Skip to content

Commit

Permalink
Update github actions versions.
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesiarmes committed Mar 29, 2024
1 parent 9f54f2f commit c55b0fd
Show file tree
Hide file tree
Showing 6 changed files with 44 additions and 33 deletions.
8 changes: 8 additions & 0 deletions .github/config/rubocop_linter_action.yml
Expand Up @@ -23,6 +23,14 @@ versions:
# Resource: https://rubocop.readthedocs.io/en/stable/configuration/
rubocop_config_path: '.rubocop.yml'

# Whether or not to use --force-exclusion when building the rubocop command. Use this if you are only linting modified
# files and typically excluded files have been changed. For example, if you exclude db/schema.rb in your rubocop.yml
# but a change gets made, then with the check_scope config set to 'modified' rubocop will lint db/schema.rb. If you set
# this to true, rubocop will ignore it.
# Valid options: true || false
# Default: false
rubocop_force_exclusion: true

# The scope of code that RuboCop should lint. Use this if you only want to lint changed files. If this is not set
# or not equal to 'modified', RuboCop is run against the entire codebase. Note that this will not work on the master branch.
# Valid options: 'modified'
Expand Down
16 changes: 7 additions & 9 deletions .github/workflows/branch.yml
Expand Up @@ -11,13 +11,11 @@ jobs:

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
- run: git fetch origin main --depth=1
- name: RuboCop Linter
uses: andrewmcodes/rubocop-linter-action@v3.3.0
with:
exit_on_failure: false
# with:
# exit_on_failure: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand All @@ -27,7 +25,7 @@ jobs:
COVERAGE: 1

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
Expand All @@ -46,20 +44,20 @@ jobs:
IMAGE_NAME: ${{ github.repository }}

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Log in to the Container registry
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v4
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
- name: Build and push Docker image
uses: docker/build-push-action@v4
uses: docker/build-push-action@v5
with:
context: .
push: true
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/main.yml
Expand Up @@ -25,7 +25,7 @@ jobs:
COVERAGE: 1

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
Expand All @@ -44,20 +44,20 @@ jobs:
IMAGE_NAME: ${{ github.repository }}

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Log in to the Container registry
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v4
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
- name: Build and push Docker image
uses: docker/build-push-action@v4
uses: docker/build-push-action@v5
with:
context: .
push: true
Expand Down
4 changes: 4 additions & 0 deletions .rubocop.yml
Expand Up @@ -25,3 +25,7 @@ RSpec/SubjectStub:

RSpec/MultipleMemoizedHelpers:
AllowSubject: true

# Rack::MockResponse does not implement has_http_status?.
RSpec/Rails/HaveHttpStatus:
Enabled: false
36 changes: 19 additions & 17 deletions Gemfile.lock
Expand Up @@ -60,19 +60,20 @@ GEM
i18n (1.14.1)
concurrent-ruby (~> 1.0)
iteraptor (0.10.0)
json (2.6.3)
json (2.7.1)
language_server-protocol (3.17.0.3)
minitest (5.19.0)
mongo (2.18.2)
bson (>= 4.14.1, < 5.0.0)
mustermann (3.0.0)
ruby2_keywords (~> 0.0.1)
mustermann-grape (1.0.2)
mustermann (>= 1.0.0)
parallel (1.23.0)
parser (3.2.2.3)
parallel (1.24.0)
parser (3.3.0.5)
ast (~> 2.4.1)
racc
racc (1.7.0)
racc (1.7.3)
rack (3.0.10)
rack-accept (0.4.5)
rack (>= 0.4)
Expand All @@ -83,8 +84,8 @@ GEM
webrick (~> 1.8)
rainbow (3.1.1)
rake (13.0.6)
regexp_parser (2.8.0)
rexml (3.2.5)
regexp_parser (2.9.0)
rexml (3.2.6)
rspec (3.12.0)
rspec-core (~> 3.12.0)
rspec-expectations (~> 3.12.0)
Expand All @@ -100,26 +101,27 @@ GEM
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.12.0)
rspec-support (3.12.0)
rubocop (1.52.0)
rubocop (1.62.1)
json (~> 2.3)
language_server-protocol (>= 3.17.0)
parallel (~> 1.10)
parser (>= 3.2.0.0)
parser (>= 3.3.0.2)
rainbow (>= 2.2.2, < 4.0)
regexp_parser (>= 1.8, < 3.0)
rexml (>= 3.2.5, < 4.0)
rubocop-ast (>= 1.28.0, < 2.0)
rubocop-ast (>= 1.31.1, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 2.4.0, < 3.0)
rubocop-ast (1.29.0)
parser (>= 3.2.1.0)
rubocop-capybara (2.18.0)
rubocop-ast (1.31.2)
parser (>= 3.3.0.4)
rubocop-capybara (2.20.0)
rubocop (~> 1.41)
rubocop-factory_bot (2.25.1)
rubocop (~> 1.41)
rubocop-factory_bot (2.23.1)
rubocop (~> 1.33)
rubocop-rake (0.6.0)
rubocop (~> 1.0)
rubocop-rspec (2.22.0)
rubocop (~> 1.33)
rubocop-rspec (2.27.1)
rubocop (~> 1.40)
rubocop-capybara (~> 2.17)
rubocop-factory_bot (~> 2.22)
ruby-progressbar (1.13.0)
Expand All @@ -134,7 +136,7 @@ GEM
thor (1.2.2)
tzinfo (2.0.6)
concurrent-ruby (~> 1.0)
unicode-display_width (2.4.2)
unicode-display_width (2.5.0)
webrick (1.8.1)
yajl-ruby (1.4.3)
zeitwerk (2.6.13)
Expand Down
3 changes: 1 addition & 2 deletions spec/unit/destination/mongo_spec.rb
Expand Up @@ -19,8 +19,7 @@
end
let(:client) do
instance_double(Mongo::Client).tap do |client|
allow(client).to receive(:use).and_return(client)
allow(client).to receive(:[]).and_return(collection)
allow(client).to receive_messages(use: client, :[] => collection)
end
end
let(:collection) do
Expand Down

0 comments on commit c55b0fd

Please sign in to comment.