From e6f378030ad8bbcbcf47e444825a1d534e7d870c Mon Sep 17 00:00:00 2001 From: CodeMeister Date: Fri, 3 Jan 2025 16:33:35 +0000 Subject: [PATCH] Updated to test with Ruby 3.4 --- .github/workflows/{ruby_3_3.yml => build.yml} | 21 ++++++++++----- .github/workflows/code_coverage.yml | 2 +- .github/workflows/ruby_2_7.yml | 27 ------------------- .github/workflows/ruby_3_0.yml | 26 ------------------ .github/workflows/ruby_3_1.yml | 26 ------------------ .github/workflows/ruby_3_2.yml | 26 ------------------ README.md | 20 +++++++------- 7 files changed, 25 insertions(+), 123 deletions(-) rename .github/workflows/{ruby_3_3.yml => build.yml} (54%) delete mode 100644 .github/workflows/ruby_2_7.yml delete mode 100644 .github/workflows/ruby_3_0.yml delete mode 100644 .github/workflows/ruby_3_1.yml delete mode 100644 .github/workflows/ruby_3_2.yml diff --git a/.github/workflows/ruby_3_3.yml b/.github/workflows/build.yml similarity index 54% rename from .github/workflows/ruby_3_3.yml rename to .github/workflows/build.yml index f7099ce..bbafc51 100644 --- a/.github/workflows/ruby_3_3.yml +++ b/.github/workflows/build.yml @@ -1,7 +1,5 @@ -# This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake -# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby -name: Ruby 3.3 +name: Build on: push: @@ -11,7 +9,18 @@ on: jobs: test: - + name: Ruby ${{ matrix.ruby }} + strategy: + fail-fast: false + matrix: + ruby: + - "2.7" + - "3.0" + - "3.1" + - "3.2" + - "3.3" + - "3.4" + runs-on: ubuntu-latest steps: @@ -19,8 +28,8 @@ jobs: - name: Set up Ruby uses: ruby/setup-ruby@v1 with: - ruby-version: '3.3' # Not needed with a .ruby-version file + ruby-version: ${{ matrix.ruby } bundler-cache: true # runs 'bundle install' and caches installed gems automatically - - name: Run tests + - name: Run Tests run: bundle exec rspec spec diff --git a/.github/workflows/code_coverage.yml b/.github/workflows/code_coverage.yml index 82ae4ec..d8f607a 100644 --- a/.github/workflows/code_coverage.yml +++ b/.github/workflows/code_coverage.yml @@ -21,7 +21,7 @@ jobs: - name: Set up Ruby uses: ruby/setup-ruby@v1 with: - ruby-version: '3.3' # Not needed with a .ruby-version file + ruby-version: '3.4' # Not needed with a .ruby-version file bundler-cache: true # runs 'bundle install' and caches installed gems automatically - name: Install Appraisal Gems diff --git a/.github/workflows/ruby_2_7.yml b/.github/workflows/ruby_2_7.yml deleted file mode 100644 index ec52870..0000000 --- a/.github/workflows/ruby_2_7.yml +++ /dev/null @@ -1,27 +0,0 @@ -# This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake -# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby - -name: Ruby 2.7 - -on: - push: - branches: [ main, dev ] - pull_request: - branches: [ main, dev ] - -jobs: - test: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v4 - - name: Set up Ruby - uses: ruby/setup-ruby@v1 - with: - ruby-version: '2.7' # Not needed with a .ruby-version file - bundler: 'latest' - bundler-cache: true # runs 'bundle install' and caches installed gems automatically - - - name: Run tests - run: bundle exec rspec spec diff --git a/.github/workflows/ruby_3_0.yml b/.github/workflows/ruby_3_0.yml deleted file mode 100644 index 78a7d1a..0000000 --- a/.github/workflows/ruby_3_0.yml +++ /dev/null @@ -1,26 +0,0 @@ -# This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake -# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby - -name: Ruby 3.0 - -on: - push: - branches: [ main, dev ] - pull_request: - branches: [ main, dev ] - -jobs: - test: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v4 - - name: Set up Ruby - uses: ruby/setup-ruby@v1 - with: - ruby-version: '3.0' # Not needed with a .ruby-version file - bundler-cache: true # runs 'bundle install' and caches installed gems automatically - - - name: Run tests - run: bundle exec rspec spec diff --git a/.github/workflows/ruby_3_1.yml b/.github/workflows/ruby_3_1.yml deleted file mode 100644 index b739f0c..0000000 --- a/.github/workflows/ruby_3_1.yml +++ /dev/null @@ -1,26 +0,0 @@ -# This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake -# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby - -name: Ruby 3.1 - -on: - push: - branches: [ main, dev ] - pull_request: - branches: [ main, dev ] - -jobs: - test: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v4 - - name: Set up Ruby - uses: ruby/setup-ruby@v1 - with: - ruby-version: '3.1' # Not needed with a .ruby-version file - bundler-cache: true # runs 'bundle install' and caches installed gems automatically - - - name: Run tests - run: bundle exec rspec spec diff --git a/.github/workflows/ruby_3_2.yml b/.github/workflows/ruby_3_2.yml deleted file mode 100644 index d9bdbd3..0000000 --- a/.github/workflows/ruby_3_2.yml +++ /dev/null @@ -1,26 +0,0 @@ -# This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake -# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby - -name: Ruby 3.2 - -on: - push: - branches: [ main, dev ] - pull_request: - branches: [ main, dev ] - -jobs: - test: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v4 - - name: Set up Ruby - uses: ruby/setup-ruby@v1 - with: - ruby-version: '3.2' # Not needed with a .ruby-version file - bundler-cache: true # runs 'bundle install' and caches installed gems automatically - - - name: Run tests - run: bundle exec rspec spec diff --git a/README.md b/README.md index b02b64c..c543fa9 100644 --- a/README.md +++ b/README.md @@ -12,18 +12,16 @@ [//]: # "##### BADGES #####" [//]: # "############################################" +## Status + +![Build](https://github.com/Rubology/result_vault/actions/workflows/build.yml/badge.svg?branch=dev) +  +![100% Test Coverage](https://github.com/Rubology/result_vault/actions/workflows/code_coverage.yml/badge.svg?branch=dev) +  +[![Gem Version](https://badge.fury.io/rb/result_vault.svg)](https://badge.fury.io/rb/result_vault) +  +[![License: MIT](https://img.shields.io/badge/License-MIT-purple.svg)](#license) -| Main Branch| Dev Branch| -|---|---| -| ![ruby 3.3](https://github.com/Rubology/result_vault/actions/workflows/ruby_3_3.yml/badge.svg?branch=main) | ![ruby 3.3](https://github.com/Rubology/result_vault/actions/workflows/ruby_3_3.yml/badge.svg?branch=dev) | -| ![ruby 3.2](https://github.com/Rubology/result_vault/actions/workflows/ruby_3_2.yml/badge.svg?branch=main) | ![ruby 3.2](https://github.com/Rubology/result_vault/actions/workflows/ruby_3_2.yml/badge.svg?branch=dev) | -| ![ruby 3.1](https://github.com/Rubology/result_vault/actions/workflows/ruby_3_1.yml/badge.svg?branch=main) | ![ruby 3.1](https://github.com/Rubology/result_vault/actions/workflows/ruby_3_1.yml/badge.svg?branch=dev) | -| ![ruby 3.0](https://github.com/Rubology/result_vault/actions/workflows/ruby_3_0.yml/badge.svg?branch=main) | ![ruby 3.0](https://github.com/Rubology/result_vault/actions/workflows/ruby_3_0.yml/badge.svg?branch=dev) | -| ![ruby 2.7](https://github.com/Rubology/result_vault/actions/workflows/ruby_2_7.yml/badge.svg?branch=main) | ![ruby 2.7](https://github.com/Rubology/result_vault/actions/workflows/ruby_2_7.yml/badge.svg?branch=dev) | -|   | | -| [![License: MIT](https://img.shields.io/badge/License-MIT-purple.svg)](#license) | [![License: MIT](https://img.shields.io/badge/License-MIT-purple.svg)](#license) | -| [![Gem Version](https://badge.fury.io/rb/result_vault.svg)](https://badge.fury.io/rb/result_vault) | [![Gem Version](https://badge.fury.io/rb/result_vault.svg)](https://badge.fury.io/rb/result_vault) | -| ![100% Coverage](https://github.com/Rubology/result_vault/actions/workflows/code_coverage.yml/badge.svg?branch=main) | ![100% Coverage](https://github.com/Rubology/result_vault/actions/workflows/code_coverage.yml/badge.svg?branch=dev) |