diff --git a/.github/workflows/ruby.yml b/.github/workflows/ruby.yml index 7005d2d..beb7d83 100644 --- a/.github/workflows/ruby.yml +++ b/.github/workflows/ruby.yml @@ -1,20 +1,27 @@ name: Ruby -on: [push] +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] -jobs: - build: +permissions: + contents: read +jobs: + tests: runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + ruby: [ "1.9.3", "2.0.0", 2.1, 2.3, 2.4, 2.5, 2.6, 2.7, "3.0", 3.1, 3.2, jruby-9.1, jruby-9.2, jruby-9.3, jruby-9.4, truffleruby-head ] + name: ${{ matrix.ruby }} steps: - - uses: actions/checkout@v1 - - name: Set up Ruby 2.6 - uses: actions/setup-ruby@v1 + - uses: actions/checkout@v3 + - uses: actions/setup-ruby@v1 with: - ruby-version: 2.6.x - - name: Build and test with Rake - run: | - gem install bundler - bundle install --jobs 4 --retry 3 - bundle exec rake + ruby-version: ${{ matrix.ruby }} + bundler-cache: true + - run: bundle exec rake diff --git a/.gitignore b/.gitignore index b04a8c8..cbe6612 100644 --- a/.gitignore +++ b/.gitignore @@ -9,3 +9,4 @@ # rspec failure tracking .rspec_status +Gemfile.lock diff --git a/Gemfile b/Gemfile index 189b312..5f10ba8 100644 --- a/Gemfile +++ b/Gemfile @@ -1,12 +1,4 @@ # frozen_string_literal: true source 'https://rubygems.org' - -# Specify your gem's dependencies in uuid_v6.gemspec gemspec - -gem 'rake' - -group :test do - gem 'rspec' -end diff --git a/Gemfile.lock b/Gemfile.lock deleted file mode 100644 index 96acada..0000000 --- a/Gemfile.lock +++ /dev/null @@ -1,40 +0,0 @@ -PATH - remote: . - specs: - uuid_v6 (0.1.0) - uuid - -GEM - remote: https://rubygems.org/ - specs: - diff-lcs (1.3) - macaddr (1.7.2) - systemu (~> 2.6.5) - rake (12.3.3) - rspec (3.8.0) - rspec-core (~> 3.8.0) - rspec-expectations (~> 3.8.0) - rspec-mocks (~> 3.8.0) - rspec-core (3.8.2) - rspec-support (~> 3.8.0) - rspec-expectations (3.8.4) - diff-lcs (>= 1.2.0, < 2.0) - rspec-support (~> 3.8.0) - rspec-mocks (3.8.1) - diff-lcs (>= 1.2.0, < 2.0) - rspec-support (~> 3.8.0) - rspec-support (3.8.2) - systemu (2.6.5) - uuid (2.3.9) - macaddr (~> 1.0) - -PLATFORMS - ruby - -DEPENDENCIES - rake - rspec - uuid_v6! - -BUNDLED WITH - 2.0.2 diff --git a/uuid_v6.gemspec b/uuid_v6.gemspec index 5ead747..edeef4f 100644 --- a/uuid_v6.gemspec +++ b/uuid_v6.gemspec @@ -16,4 +16,5 @@ Gem::Specification.new do |spec| spec.require_paths = ["lib"] spec.add_dependency 'uuid' + spec.add_development_dependency 'rspec' end