Skip to content

Commit

Permalink
update rubocop, arm64 build, addtional version spec
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdaniellewis committed Feb 13, 2023
1 parent c37475b commit fc63e51
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 11 deletions.
1 change: 1 addition & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,5 @@ jobs:
aws_secret_key: ${{ secrets.PUBLIC_PUSH_ECR_AWS_SECRET }}
dockerfile_context: '.'
repository_name: postcoder
multiarch_build: 'enabled'
auth_token: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ gem "redis"
gem "newrelic_rpm"

group :development do
gem "citizens-advice-style", github: "citizensadvice/citizens-advice-style-ruby", tag: "v9.0.0"
gem "citizens-advice-style", github: "citizensadvice/citizens-advice-style-ruby", tag: "v10.0.0"
gem "debug"
gem "rack-test"
gem "rspec"
Expand Down
30 changes: 20 additions & 10 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
GIT
remote: https://github.com/citizensadvice/citizens-advice-style-ruby.git
revision: 1a0f7e2cdcfd455a1c4d757c03d1c45eb160551d
tag: v9.0.0
revision: 399708d8878e96a811c99af041d12f9f9e58d4dc
tag: v10.0.0
specs:
citizens-advice-style (9.0.0)
rubocop (~> 1.30.1)
rubocop-rspec (~> 2.11.1)
rubocop (~> 1.45)
rubocop-rails (~> 2.17)
rubocop-rspec (~> 2.18)

GEM
remote: https://rubygems.org/
Expand Down Expand Up @@ -41,6 +42,7 @@ GEM
http-form_data (2.3.0)
i18n (1.12.0)
concurrent-ruby (~> 1.0)
json (2.6.3)
llhttp-ffi (0.4.0)
ffi-compiler (~> 1.0)
rake (~> 13.0)
Expand Down Expand Up @@ -82,19 +84,27 @@ GEM
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.12.0)
rspec-support (3.12.0)
rubocop (1.30.1)
rubocop (1.45.1)
json (~> 2.3)
parallel (~> 1.10)
parser (>= 3.1.0.0)
parser (>= 3.2.0.0)
rainbow (>= 2.2.2, < 4.0)
regexp_parser (>= 1.8, < 3.0)
rexml (>= 3.2.5, < 4.0)
rubocop-ast (>= 1.18.0, < 2.0)
rubocop-ast (>= 1.24.1, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 1.4.0, < 3.0)
unicode-display_width (>= 2.4.0, < 3.0)
rubocop-ast (1.26.0)
parser (>= 3.2.1.0)
rubocop-rspec (2.11.1)
rubocop (~> 1.19)
rubocop-capybara (2.17.0)
rubocop (~> 1.41)
rubocop-rails (2.17.4)
activesupport (>= 4.2.0)
rack (>= 1.1)
rubocop (>= 1.33.0, < 2.0)
rubocop-rspec (2.18.1)
rubocop (~> 1.33)
rubocop-capybara (~> 2.17)
ruby-progressbar (1.11.0)
ruby2_keywords (0.0.5)
sinatra (3.0.5)
Expand Down
13 changes: 13 additions & 0 deletions spec/version_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# frozen_string_literal: true

require_relative "../lib/version"

describe VERSION do
it "matches the branch" do
# Only really works locally. Just to enforce updating the branch
branch = `git branch --show-current`.chomp
expect(VERSION).to eq branch.sub(/^v/, "") if branch.match?(/^v?\d+\.\d+\.\d+/) # rubocop:disable RSpec/DescribedClass
rescue Errno::ENOENT
# ignore
end
end

0 comments on commit fc63e51

Please sign in to comment.