Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 12 additions & 6 deletions .github/workflows/lint.yml → .github/workflows/ruby-lint.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
name: Lint
name: Ruby Lint

on:
push:
branches: [master]
paths:
- 'ruby/**'
- '.github/workflows/ruby-lint.yml'
pull_request:
paths:
- '.rubocop.yml'
- 'Gemfile.lock'
- '**/*.rb'
- '.github/workflows/lint.yml'
- 'ruby/**'
- '.github/workflows/ruby-lint.yml'

defaults:
run:
working-directory: ruby

jobs:
lint:
Expand All @@ -27,5 +32,6 @@ jobs:
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true
- name: Run rspec
working-directory: ruby
- name: Run rubocop
run: bundle exec rubocop
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# refs: https://ybiquitous.me/blog/2022/release-gem-using-github-actions
name: Publish
name: Ruby Publish

on:
workflow_dispatch:
Expand All @@ -8,6 +8,10 @@ on:
description: "One-time password for RubyGems.org"
required: true

defaults:
run:
working-directory: ruby

concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true
Expand All @@ -26,6 +30,7 @@ jobs:
with:
ruby-version: '3.1'
bundler-cache: true
working-directory: ruby

# https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-ruby#publishing-gems
- name: Publish to RubyGems
Expand Down
15 changes: 11 additions & 4 deletions .github/workflows/test.yml → .github/workflows/ruby-test.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,19 @@
name: Test
name: Ruby Test

on:
push:
branches: [master]
paths:
- 'ruby/**'
- '.github/workflows/ruby-test.yml'
pull_request:
paths:
- 'Gemfile.lock'
- '**/*.rb'
- '.github/workflows/test.yml'
- 'ruby/**'
- '.github/workflows/ruby-test.yml'

defaults:
run:
working-directory: ruby

env:
AWS_REGION: ap-northeast-1
Expand All @@ -29,5 +35,6 @@ jobs:
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true
working-directory: ruby
- name: Run rspec
run: bundle exec rspec
Loading
Loading