Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apply bundler-cache to CI's Ruby setup #2204

Merged
merged 2 commits into from
Dec 19, 2023
Merged

Conversation

st0012
Copy link
Collaborator

@st0012 st0012 commented Dec 19, 2023

bundler-cache should automatically pick the right bundler version for us.
I also applied prettier formatting to the files as I do think it improves readability.

#skip-changelog

ruby-version: ${{ matrix.ruby_version }}
bundler: "2.3"
- name: Set up Ruby ${{ matrix.ruby_version }}
uses: ruby/setup-ruby@v1

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • 🚫 Please pin the action by specifying a commit SHA instead of a tag/branch.

sudo apt-get update
sudo apt-get install libsqlite3-dev imagemagick
- name: Set up Ruby ${{ matrix.ruby_version }}
uses: ruby/setup-ruby@v1

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • 🚫 Please pin the action by specifying a commit SHA instead of a tag/branch.

bundler: "2.3"
- uses: actions/checkout@v1
- name: Set up Ruby ${{ matrix.ruby_version }}
uses: ruby/setup-ruby@v1

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • 🚫 Please pin the action by specifying a commit SHA instead of a tag/branch.

with:
redis-version: 5
- name: Start Redis
uses: supercharge/[email protected]

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • 🚫 Please pin the action by specifying a commit SHA instead of a tag/branch.

ruby-version: ${{ matrix.ruby_version }}
bundler: "2.3"
- name: Set up Ruby ${{ matrix.ruby_version }}
uses: ruby/setup-ruby@v1

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • 🚫 Please pin the action by specifying a commit SHA instead of a tag/branch.

with:
redis-version: ${{ matrix.sidekiq_version == '7.0' && 6 || 5 }}
- name: Start Redis
uses: supercharge/[email protected]

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • 🚫 Please pin the action by specifying a commit SHA instead of a tag/branch.

Copy link

codecov bot commented Dec 19, 2023

Codecov Report

Merging #2204 (d18be50) into master (bdb2c7b) will decrease coverage by 0.07%.
The diff coverage is n/a.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2204      +/-   ##
==========================================
- Coverage   97.41%   97.34%   -0.07%     
==========================================
  Files          97      100       +3     
  Lines        3671     3734      +63     
==========================================
+ Hits         3576     3635      +59     
- Misses         95       99       +4     
Components Coverage Δ
sentry-ruby 98.06% <ø> (+0.03%) ⬆️
sentry-rails 94.98% <ø> (ø)
sentry-sidekiq 94.53% <ø> (ø)
sentry-resque 92.06% <ø> (∅)
sentry-delayed_job 94.44% <ø> (ø)
sentry-opentelemetry 100.00% <ø> (ø)

see 4 files with indirect coverage changes

ruby-version: ${{ matrix.ruby_version }}
bundler: "2.3"
- name: Set up Ruby ${{ matrix.ruby_version }}
uses: ruby/setup-ruby@v1

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • 🚫 Please pin the action by specifying a commit SHA instead of a tag/branch.

@st0012
Copy link
Collaborator Author

st0012 commented Dec 19, 2023

I think danger is failing for an unrelated reason:

Failing the build, there are 7 fails.
Request failed [403]: https://api.github.com/user
Response: {
  "message": "Resource not accessible by integration",
  "documentation_url": "https://docs.github.com/rest/users/users#get-the-authenticated-user"
}
Request failed [403]: https://api.github.com/user
Response: {
  "message": "Resource not accessible by integration",
  "documentation_url": "https://docs.github.com/rest/users/users#get-the-authenticated-user"
}

@st0012 st0012 marked this pull request as ready for review December 19, 2023 11:12
Copy link
Member

@sl0thentr0py sl0thentr0py left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh nice

@sl0thentr0py
Copy link
Member

danger is failing because it wants you to pin the SHA for github actions, we can ignore that

@st0012 st0012 merged commit 0874ca8 into master Dec 19, 2023
95 of 99 checks passed
@st0012 st0012 deleted the simplify-ci-ruby-setup branch December 19, 2023 11:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants