Skip to content

Commit

Permalink
Merge pull request #52 from m-nakamura145/move-from-circleci-to-githu…
Browse files Browse the repository at this point in the history
…b-actions

Introduce Github Actions
  • Loading branch information
koic authored May 30, 2024
2 parents f43c546 + 3693fb3 commit 673a740
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 58 deletions.
56 changes: 0 additions & 56 deletions .circleci/config.yml

This file was deleted.

35 changes: 35 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: CI

on:
pull_request:
push:
branches:
- master

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
main:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ruby:
- "2.5"
- "2.6"
- "2.7"
- "3.0"
- "3.1"
- "3.2"
- "3.3"
- ruby-head
name: "Ruby ${{ matrix.ruby }}: spec"
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: "${{ matrix.ruby }}"
bundler-cache: true
- run: bundle exec rake
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[![Gem Version](https://badge.fury.io/rb/rubocop-rake.svg)](https://rubygems.org/gems/rubocop-rake)
[![CircleCI](https://circleci.com/gh/rubocop/rubocop-rake.svg?style=svg)](https://circleci.com/gh/rubocop/rubocop-rake)
![CI](https://github.com/rubocop/rubocop-rake/workflows/main.yml/badge.svg)

# RuboCop Rake

Expand Down
2 changes: 1 addition & 1 deletion lib/rubocop/cop/rake/helper/task_name.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module TaskName
extend self

def task_name(node)
first_arg = node.arguments[0]
first_arg = node.first_argument
case first_arg&.type
when :sym, :str
first_arg.value.to_sym
Expand Down

0 comments on commit 673a740

Please sign in to comment.