Skip to content

Commit dc133bd

Browse files
committed
Update some GitHub action versions and make coverage artifact unique
1 parent d986673 commit dc133bd

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/ruby.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ jobs:
66
rubocop:
77
runs-on: ubuntu-latest
88
steps:
9-
- uses: actions/checkout@v2
9+
- uses: actions/checkout@v4
1010
- name: Set up Ruby and install dependencies
1111
uses: ruby/setup-ruby@v1
1212
with:
@@ -22,7 +22,7 @@ jobs:
2222
ruby: [3.1, 3.2, 3.3]
2323
faraday_version: ['', '~> 1.0'] # Defaults to whatever's the most recent version.
2424
steps:
25-
- uses: actions/checkout@v2
25+
- uses: actions/checkout@v4
2626

2727
- name: Set up Ruby and install dependencies
2828
uses: ruby/setup-ruby@v1
@@ -32,13 +32,13 @@ jobs:
3232
env:
3333
FARADAY_VERSION: ${{ matrix.faraday_version }}
3434

35-
- name: Run tests
35+
- name: "Run tests for Ruby ${{ matrix.ruby }} and Faraday ${{ matrix.faraday_version == '~> 1.0' && '1.x' || 'latest' }}"
3636
run: bundle exec rake spec
3737
env:
3838
FARADAY_VERSION: ${{ matrix.faraday_version }}
3939

4040
- name: Upload coverage artifacts
41-
uses: actions/upload-artifact@v2
41+
uses: actions/upload-artifact@v4
4242
with:
43-
name: coverage
43+
name: "coverage-${{ matrix.ruby }}-${{ matrix.faraday_version == '~> 1.0' && 'faraday-1.x' || 'faraday-latest' }}"
4444
path: coverage/

0 commit comments

Comments
 (0)