diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 8288b1c..9f55c04 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,22 +1,20 @@ name: Ruby -on: [push,pull_request] +on: push jobs: build: runs-on: ubuntu-latest strategy: matrix: - ruby: ["2.6", "2.7", "3.0"] + ruby-version: ["3.0", "3.1", "3.2", "3.3"] name: "Tests on Ruby ${{ matrix.ruby }}" steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up Ruby uses: ruby/setup-ruby@v1 with: - ruby-version: ${{ matrix.ruby }} - - name: Run the default task - run: | - gem install bundler -v 2.2.3 - bundle install - bundle exec rake + ruby-version: ${{ matrix.ruby-version }} + bundler-cache: true + - name: Test and lint + run: bundle exec rake diff --git a/Gemfile.lock b/Gemfile.lock index 6925825..31b95e4 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -70,6 +70,8 @@ GEM racc (~> 1.4) nokogiri (1.16.2-x86_64-darwin) racc (~> 1.4) + nokogiri (1.16.2-x86_64-linux) + racc (~> 1.4) parallel (1.24.0) parser (3.3.0.5) ast (~> 2.4.1) @@ -152,6 +154,7 @@ GEM PLATFORMS arm64-darwin-22 universal-darwin-19 + x86_64-linux DEPENDENCIES debug