変なカレンダー生成プログラムの作成(レベル3) #45
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Ruby | |
on: | |
pull_request: | |
branches: [ main ] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
if: "!contains(github.event.head_commit.message, '[ci skip]') && !contains(github.event.head_commit.message, '[skip ci]')" | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 3.3.5 | |
- name: Install RubyCritic | |
run: gem install rubycritic | |
- name: Run tests | |
run: ruby test/sg_strange_calendar_test.rb --no-plugins | |
- name: Run RubyCritic | |
run: | | |
shopt -s globstar | |
rubycritic lib/**/*.rb -f console |