postal-code-japan: suppress "literal string will be frozen in the fut… #561
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: Test | |
on: | |
push: | |
pull_request: | |
schedule: | |
- cron: | | |
0 0 * * 0 | |
jobs: | |
test: | |
name: "Ruby ${{ matrix.ruby-version }}: ${{ matrix.runs-on }}" | |
strategy: | |
# To avoid high frequency datasets download in a short time. | |
max-parallel: 1 | |
fail-fast: false | |
matrix: | |
ruby-version: | |
- "3.1" | |
- "3.2" | |
- "3.3" | |
runs-on: | |
- macos-latest | |
- ubuntu-latest | |
- windows-latest | |
runs-on: ${{ matrix.runs-on }} | |
env: | |
# We can invalidate the current cache by updating this. | |
CACHE_VERSION: "2024-09-01" | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby-version }} | |
- uses: actions/cache@v4 | |
if: | | |
runner.os == 'Linux' | |
with: | |
path: | | |
~/.cache/red-datasets | |
key: ${{ env.CACHE_VERSION }}-${{ runner.os }}-${{ hashFiles('lib/**') }} | |
restore-keys: | | |
${{ env.CACHE_VERSION }}-${{ runner.os }}- | |
- uses: actions/cache@v4 | |
if: | | |
runner.os == 'macOS' | |
with: | |
path: | | |
~/Library/Caches/red-datasets | |
key: ${{ env.CACHE_VERSION }}-${{ runner.os }}-${{ hashFiles('lib/**') }} | |
restore-keys: | | |
${{ env.CACHE_VERSION }}-${{ runner.os }}- | |
- uses: actions/cache@v4 | |
if: | | |
runner.os == 'Windows' | |
with: | |
path: | | |
~/AppData/Local/red-datasets | |
key: ${{ env.CACHE_VERSION }}-${{ runner.os }}-${{ hashFiles('lib/**') }} | |
restore-keys: | | |
${{ env.CACHE_VERSION }}-${{ runner.os }}- | |
- name: Install dependencies | |
run: | | |
bundle install | |
- name: Test | |
run: | | |
bundle exec rake |