From 064916846931c78299ea744df6bd4438b490b561 Mon Sep 17 00:00:00 2001 From: Benjamin Quorning Date: Tue, 13 Feb 2024 23:31:08 +0100 Subject: [PATCH 1/2] Run CI with different versions of Faraday Fixes #115. --- .github/workflows/tests.yml | 9 +++++++++ .gitignore | 1 + gemfiles/faraday-0.gemfile | 4 ++++ gemfiles/faraday-1.gemfile | 4 ++++ gemfiles/faraday-2.gemfile | 4 ++++ 5 files changed, 22 insertions(+) create mode 100644 gemfiles/faraday-0.gemfile create mode 100644 gemfiles/faraday-1.gemfile create mode 100644 gemfiles/faraday-2.gemfile diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 4829482..03a7124 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -10,6 +10,11 @@ jobs: test: runs-on: ubuntu-latest + name: Ruby ${{ matrix.ruby_version }} with ${{ matrix.gemfile }} + + env: + BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile + strategy: matrix: ruby_version: @@ -17,6 +22,10 @@ jobs: - "3.0" - "3.1" - "head" + gemfile: + - "faraday-0" + - "faraday-1" + - "faraday-2" steps: - uses: actions/checkout@v2 diff --git a/.gitignore b/.gitignore index 7e90b76..f5d944c 100644 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,7 @@ *.gem /Gemfile.lock +/gemfiles/*.lock vendor/ruby example/vendor diff --git a/gemfiles/faraday-0.gemfile b/gemfiles/faraday-0.gemfile new file mode 100644 index 0000000..aba7f74 --- /dev/null +++ b/gemfiles/faraday-0.gemfile @@ -0,0 +1,4 @@ +source 'https://rubygems.org' +gemspec path: '..' + +gem 'faraday', '~> 0' diff --git a/gemfiles/faraday-1.gemfile b/gemfiles/faraday-1.gemfile new file mode 100644 index 0000000..1316486 --- /dev/null +++ b/gemfiles/faraday-1.gemfile @@ -0,0 +1,4 @@ +source 'https://rubygems.org' +gemspec path: '..' + +gem 'faraday', '~> 1' diff --git a/gemfiles/faraday-2.gemfile b/gemfiles/faraday-2.gemfile new file mode 100644 index 0000000..77e3e3f --- /dev/null +++ b/gemfiles/faraday-2.gemfile @@ -0,0 +1,4 @@ +source 'https://rubygems.org' +gemspec path: '..' + +gem 'faraday', '~> 2' From e036954d083afd11d5b2b1ac3875ca7335fdff1d Mon Sep 17 00:00:00 2001 From: Benjamin Quorning Date: Tue, 13 Feb 2024 23:36:38 +0100 Subject: [PATCH 2/2] CI: Use newest actions/checkout GHA warns us that > Node.js 16 actions are deprecated. Please update the following actions to > use Node.js 20: actions/checkout@v2. [...] --- .github/workflows/tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 03a7124..893d461 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -28,7 +28,7 @@ jobs: - "faraday-2" steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up Ruby uses: ruby/setup-ruby@v1