From 46165bbcd86879e081af1228e8b6b48e2031fe65 Mon Sep 17 00:00:00 2001 From: Piotr Stachyra Date: Sat, 25 Feb 2023 14:14:30 +0100 Subject: [PATCH] ruby version 3.1.2 and setup-ruby update in workflows --- .github/workflows/cli.yml | 3 +-- .github/workflows/docs.yml | 2 +- .github/workflows/gem-push.yml | 6 ++---- .github/workflows/rubocop.yml | 3 +-- .github/workflows/tests.yml | 2 +- .ruby-version | 1 + 6 files changed, 7 insertions(+), 10 deletions(-) create mode 100644 .ruby-version diff --git a/.github/workflows/cli.yml b/.github/workflows/cli.yml index 5d34de7..fa841c8 100644 --- a/.github/workflows/cli.yml +++ b/.github/workflows/cli.yml @@ -18,9 +18,8 @@ jobs: uses: actions/checkout@v3 - name: ๐Ÿ’Ž Set up Ruby - uses: ruby/setup-ruby@0a29871fe2b0200a17a4497bae54fe5df0d973aa # v1.115.3 + uses: ruby/setup-ruby@v1.127.0 with: - ruby-version: '2.7' bundler-cache: true # runs 'bundle install' and caches installed gems automatically - name: ๐Ÿงช CLI sanity diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 0c538bc..82ea6db 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -17,7 +17,7 @@ jobs: - name: '๐Ÿ“ฅ Checkout repository' uses: actions/checkout@v3 - name: '๐Ÿ’Ž Setup Ruby' - uses: actions/setup-ruby@v1 + uses: ruby/setup-ruby@v1.127.0 - name: '๐Ÿ”ง Set versions' id: versions diff --git a/.github/workflows/gem-push.yml b/.github/workflows/gem-push.yml index bbce892..41fc173 100644 --- a/.github/workflows/gem-push.yml +++ b/.github/workflows/gem-push.yml @@ -16,10 +16,8 @@ jobs: steps: - name: '๐Ÿ“ฅ Checkout repository' uses: actions/checkout@v3 - - name: ๐Ÿ’Ž Set up Ruby 2.6 - uses: actions/setup-ruby@v1 - with: - ruby-version: 2.6.x + - name: ๐Ÿ’Ž Set up Ruby + uses: ruby/setup-ruby@v1.127.0 # - name: ๐Ÿš€ Publish to GPR # run: | diff --git a/.github/workflows/rubocop.yml b/.github/workflows/rubocop.yml index 228a8f2..c55d3bc 100644 --- a/.github/workflows/rubocop.yml +++ b/.github/workflows/rubocop.yml @@ -18,9 +18,8 @@ jobs: uses: actions/checkout@v3 - name: ๐Ÿ’Ž Set up Ruby - uses: ruby/setup-ruby@0a29871fe2b0200a17a4497bae54fe5df0d973aa # v1.115.3 + uses: ruby/setup-ruby@v1.127.0 with: - ruby-version: 3.1.2 bundler-cache: true # runs 'bundle install' and caches installed gems automatically - name: ๐Ÿ‘ฎ Rubocop diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 76be618..6bdb981 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -24,7 +24,7 @@ jobs: uses: actions/checkout@v3 - name: ๐Ÿ’Ž Set up Ruby - uses: ruby/setup-ruby@0a29871fe2b0200a17a4497bae54fe5df0d973aa # v1.115.3 + uses: ruby/setup-ruby@v1.127.0 with: ruby-version: ${{ matrix.ruby-version }} bundler-cache: true # runs 'bundle install' and caches installed gems automatically diff --git a/.ruby-version b/.ruby-version new file mode 100644 index 0000000..ef538c2 --- /dev/null +++ b/.ruby-version @@ -0,0 +1 @@ +3.1.2