Skip to content

Commit

Permalink
Update the CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
foca committed Feb 13, 2024
1 parent 540ab25 commit 315d94e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
16 changes: 7 additions & 9 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -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
3 changes: 3 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -152,6 +154,7 @@ GEM
PLATFORMS
arm64-darwin-22
universal-darwin-19
x86_64-linux

DEPENDENCIES
debug
Expand Down

0 comments on commit 315d94e

Please sign in to comment.