Minitest migration #347
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: Locales Checks | |
on: push | |
jobs: | |
locales: | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install libvips and pdftoppm | |
run: | | |
sudo apt-get update -qq -o Acquire::Retries=3 | |
sudo apt-get install -y --fix-missing -qq -o Acquire::Retries=3 libvips poppler-utils | |
- name: Install Ruby and run Bundler install with cache | |
uses: ruby/setup-ruby@v1 | |
with: | |
bundler-cache: true | |
- name: Missing | |
run: | | |
output=$(bin/rails locales:missing) | |
if [ -n "$output" ]; then | |
echo "Missing locales found:" | |
echo "$output" | |
exit 1 | |
fi | |
- name: Verify | |
run: | | |
expected_output="Locales passed format verification." | |
output=$(bin/rails locales:verify) | |
if [ "$output" != "$expected_output" ]; then | |
echo "Locales format is invalid." | |
exit 1 | |
fi |