Skip to content

Commit

Permalink
* Update GH CI about ubuntu, actions/checkout, fix lint job
Browse files Browse the repository at this point in the history
  • Loading branch information
PikachuEXE committed Oct 19, 2023
1 parent 2586341 commit ae74ec2
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 19 deletions.
42 changes: 23 additions & 19 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,19 @@ on:
jobs:
base:
name: Ruby ${{ matrix.ruby }}
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ruby: ["2.7", "3.0", "3.1", "3.2"]
ruby:
- "2.7"
- "3.0"
- "3.1"
- "3.2"

steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

# This setup is not compatible with the way Travis CI was
# setup, so the cache will only work for the root folder.
Expand All @@ -34,19 +38,19 @@ jobs:

- uses: codecov/codecov-action@v2

# Does not work. The action runs in Ruby 2.6, which is not compatible with
# the gem and fails to install.
# This is very strange considering that the source of the action uses a
# Dockerfile with Ruby 2.7. However, I don't want to spend time to fix this
# in a passively maintained gem.
#
# lint:
# runs-on: ubuntu-latest
# steps:
# - name: standardrb
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# uses: amoeba/standardrb-action@v2
# permissions:
# checks: write
# contents: read
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

# This setup is not compatible with the way Travis CI was
# setup, so the cache will only work for the root folder.
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: "3.2"
bundler-cache: true

- name: standardrb
run: bundle exec standardrb
1 change: 1 addition & 0 deletions roadie.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ Gem::Specification.new do |s|
s.add_development_dependency "rspec", "~> 3.0"
s.add_development_dependency "rspec-collection_matchers", "~> 1.0"
s.add_development_dependency "webmock", "~> 3.0"
s.add_development_dependency "standardrb"

s.extra_rdoc_files = %w[README.md Changelog.md]
s.require_paths = %w[lib]
Expand Down

0 comments on commit ae74ec2

Please sign in to comment.