Add development setup instructions and initial data seeds #174
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
name: Lint | |
on: push | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
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: Install Node.js and run npm install | |
uses: actions/setup-node@v4 | |
- run: npm install | |
- name: Run lint:check | |
run: bin/rails lint:check | |
- name: Run locales:missing | |
run: | | |
output=$(bin/rails locales:missing) | |
if [ -n "$output" ]; then | |
echo "Missing locales found:" | |
echo "$output" | |
exit 1 | |
fi | |
- name: Run locales: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 | |
- name: Check Migration Indexes | |
uses: speedshop/[email protected] |