diff --git a/.github/workflows/ruby.yml b/.github/workflows/ruby.yml new file mode 100644 index 0000000..5af6f30 --- /dev/null +++ b/.github/workflows/ruby.yml @@ -0,0 +1,40 @@ +# This workflow uses actions that are not certified by GitHub. +# They are provided by a third-party and are governed by +# separate terms of service, privacy policy, and support +# documentation. +# 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 + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +permissions: + contents: read + +jobs: + test: + + runs-on: ubuntu-latest + strategy: + matrix: + # Use `rbenv install -l` and only use the latest stable + # version of ruby. + ruby-version: ["3.0.1", "3.0.6", "3.1.4", "3.2.2"] + + steps: + - uses: actions/checkout@v3 + - name: Set up Ruby + # To automatically get bug fixes and new Ruby versions for ruby/setup-ruby, + # change this to (see https://github.com/ruby/setup-ruby#versioning): + # uses: ruby/setup-ruby@v1 + uses: ruby/setup-ruby@55283cc23133118229fd3f97f9336ee23a179fcf # v1.146.0 + with: + ruby-version: ${{ matrix.ruby-version }} + bundler-cache: true # runs 'bundle install' and caches installed gems automatically + - name: Run tests + run: bundle exec rake diff --git a/CHANGELOG.md b/CHANGELOG.md index 6349fb4..61d7999 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,13 @@ +### [1.0.5] 2023-12-27 + +Enhancements + +- Add github actions to run tests and rubocop. + +Changes + +- Ruby gem updates + ### [1.0.4] 2023-12-02 Changes diff --git a/Gemfile.lock b/Gemfile.lock index 93cd5ba..a011d16 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - immutable_struct_ex (1.0.4) + immutable_struct_ex (1.0.5) GEM remote: https://rubygems.org/ @@ -11,11 +11,11 @@ GEM coderay (1.1.3) diff-lcs (1.5.0) docile (1.4.0) - json (2.7.0) + json (2.7.1) kwalify (0.7.2) language_server-protocol (3.17.0.3) method_source (1.0.0) - parallel (1.23.0) + parallel (1.24.0) parser (3.2.2.4) ast (~> 2.4.1) racc @@ -32,7 +32,7 @@ GEM kwalify (~> 0.7.0) parser (~> 3.2.0) rainbow (>= 2.0, < 4.0) - regexp_parser (2.8.2) + regexp_parser (2.8.3) rexml (3.2.6) rspec (3.12.0) rspec-core (~> 3.12.0) @@ -47,7 +47,7 @@ GEM diff-lcs (>= 1.2.0, < 2.0) rspec-support (~> 3.12.0) rspec-support (3.12.1) - rubocop (1.58.0) + rubocop (1.59.0) json (~> 2.3) language_server-protocol (>= 3.17.0) parallel (~> 1.10) @@ -64,9 +64,9 @@ GEM rubocop (~> 1.41) rubocop-factory_bot (2.24.0) rubocop (~> 1.33) - rubocop-performance (1.19.1) - rubocop (>= 1.7.0, < 2.0) - rubocop-ast (>= 0.4.0) + rubocop-performance (1.20.1) + rubocop (>= 1.48.1, < 2.0) + rubocop-ast (>= 1.30.0, < 2.0) rubocop-rspec (2.25.0) rubocop (~> 1.40) rubocop-capybara (~> 2.17) diff --git a/lib/immutable_struct_ex/version.rb b/lib/immutable_struct_ex/version.rb index 649ac61..40ee793 100644 --- a/lib/immutable_struct_ex/version.rb +++ b/lib/immutable_struct_ex/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module ImmutableStructEx - VERSION = '1.0.4' + VERSION = '1.0.5' end