Skip to content

Commit

Permalink
Improve CI
Browse files Browse the repository at this point in the history
  • Loading branch information
w-masahiro-ct committed Dec 27, 2024
1 parent e2a6963 commit d2c9c12
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 13 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Linting
name: Lint

on:
pull_request:
Expand All @@ -13,11 +13,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up Ruby
uses: yettoapp/actions/setup-languages@main
with:
ruby: true

- name: Rubocop
uses: ruby/setup-ruby@v1
- name: RuboCop
run: bundle exec rake rubocop
14 changes: 8 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: CI
name: Test

on:
pull_request:
Expand All @@ -9,14 +9,16 @@ permissions:
jobs:
test:
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
ruby-version: [3.1, 3.2, 3.3, 3.4]
steps:
- uses: actions/checkout@v4

- name: Set up Ruby
uses: yettoapp/actions/setup-languages@main
uses: ruby/setup-ruby@v1
with:
ruby: true

ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true
- name: Run tests
run: bundle exec rake test

0 comments on commit d2c9c12

Please sign in to comment.