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

chore: use GitHub actions #59

Closed
wants to merge 5 commits into from
Closed

Conversation

cbeer
Copy link

@cbeer cbeer commented Jun 27, 2022

No description provided.

Comment on lines +18 to +28

- name: Cache bundler
uses: actions/cache@v1
id: bundler-cache
with:
path: vendor/bundle
key: ${{ runner.os }}-${{ matrix.ruby-version }}-gem-v3-${{ hashFiles('**/Gemfile') }}-${{ hashFiles('**/net-scp.gemspec') }}
restore-keys: |
${{ runner.os }}-${{ matrix.ruby-version }}-gem-v3-
- name: Install dependencies
run: bundle install
Copy link
Contributor

Choose a reason for hiding this comment

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

It can be replaced with bundler-cache: true.
https://github.com/ruby/setup-ruby#caching-bundle-install-automatically

Suggested change
- name: Cache bundler
uses: actions/cache@v1
id: bundler-cache
with:
path: vendor/bundle
key: ${{ runner.os }}-${{ matrix.ruby-version }}-gem-v3-${{ hashFiles('**/Gemfile') }}-${{ hashFiles('**/net-scp.gemspec') }}
restore-keys: |
${{ runner.os }}-${{ matrix.ruby-version }}-gem-v3-
- name: Install dependencies
run: bundle install
bundler-cache: true # runs 'bundle install' and caches installed gems automatically

matrix:
ruby-version: [2.3.8, 2.4.10, 2.5.9, 2.6.6, 2.7.6, 3.0.4, 3.1.2]
steps:
- uses: actions/checkout@v1
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
- uses: actions/checkout@v1
- uses: actions/checkout@v3

runs-on: ubuntu-18.04
strategy:
matrix:
ruby-version: [2.3.8, 2.4.10, 2.5.9, 2.6.6, 2.7.6, 3.0.4, 3.1.2]
Copy link
Contributor

Choose a reason for hiding this comment

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

I recommend not to specify minor versions unless there is a special reason.

Suggested change
ruby-version: [2.3.8, 2.4.10, 2.5.9, 2.6.6, 2.7.6, 3.0.4, 3.1.2]
ruby-version: ['2.3', '2.4', '2.5', '2.6', '2.7', '3.0', '3.1']

@mishina2228
Copy link
Contributor

@cbeer #60 has been merged, could you rebase it?

@matejzero
Copy link

Any plan to push this forward and merge?

@mfazekas mfazekas changed the title Relax net-ssh dependency pinning chore: use GitHub actions Apr 19, 2023
@mfazekas
Copy link
Collaborator

@matejzero what are you interested in from this pr? net-scp 4 already support net-ssh 7, so that part is already merged.

@cbeer can you please rebase and write a short summary of the proposed changes?

@mishina2228
Copy link
Contributor

Well, I think this one can be closed since it is almost identical to the changes I made in #64.

@matejzero
Copy link

@matejzero what are you interested in from this pr? net-scp 4 already support net-ssh 7, so that part is already merged.

It turns out this was already fixed with 4.0.0 release and I overlooked. Updated my Gemfile and it's working (puppet acceptance tests with AL9 and no SHA1 support).

@mfazekas mfazekas closed this Apr 19, 2023
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.

None yet

4 participants