Dockerイメージを actions/cache
でキャッシュし、docker pull をスキップして高速化しようとしたときの .github/workflows/test.yml
。
詳細は https://www.hidakatsuya.dev/2022/06/11/try-to-make-github-action-faster.html を参照。
This file contains hidden or 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
{% raw %} | |
```yml | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ env.RUBY_VERSION }} | |
``` | |
{% endraw %} |
https://github.com/thinreports/thinreports-section-editor の Vue2 形式のコンポーネントを CompositionAPI に一括で変換するための Ruby スクリプト。
あくまで https://github.com/thinreports/thinreports-section-editor のコンポーネントの移行のための使い捨てのスクリプト。 元のコードのインデント規則やコードスタイルなど、一定の前提の下で動作するものであり、汎用性は一切考慮していない。
RSpec の spec ファイルの構造のみ出力する
git grep -h -E "([^\._](describe|context|it) '.+' do|it_behaves_like .*$)" -- spec/path/to/*_spec.rb
Output:
describe 'a' do
it 'aa' do
describe 'b' do
This file contains hidden or 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
:root { | |
--canvas-padding: 10px; | |
} | |
body { | |
margin: 0; | |
padding: var(--canvas-padding); | |
} | |
.inner { |
This file contains hidden or 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
for a in path/to/**/prefix_*.rb ; do dir=`dirname $a`; mv $a "${dir}/new_filename.rb"; done |
This file contains hidden or 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
item/ | |
style/ | |
base.rb | |
basic.rb | |
graphic.rb | |
text.rb | |
text_formatter/ (text_block/formatter/*) | |
basic.rb | |
datetime.rb | |
number.rb |