Skip to content

Use Entry pattern to call only once into the hashmap to get or insert… #470

Use Entry pattern to call only once into the hashmap to get or insert…

Use Entry pattern to call only once into the hashmap to get or insert… #470

Workflow file for this run

name: Ruby gem scaffolding
on:
push:
paths:
- 'ruby/**' # Only run action when ruby-related things are touched
jobs:
test:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
ruby: ['2.5', '2.6', '2.7', '3.0', '3.1', '3.2', '3.3', '3.4', head]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # 4.2.2
- uses: ruby/setup-ruby@13e7a03dc3ac6c3798f4570bfead2aed4d96abfb # 1.244.0
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
working-directory: ruby/
- run: cd ruby && bundle exec rake