Add categories (MCC) + Bump min Ruby version + Pre-compile on boot #96
Workflow file for this run
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: Ruby | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
rspec: | |
runs-on: ubuntu-latest | |
name: RSpec (Ruby ${{ matrix.ruby }}) | |
strategy: | |
matrix: | |
ruby: | |
- "3.1" # Minimum supported version | |
- "3.2" | |
- "3.3" | |
- "ruby" # Latest stable version | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby }} | |
bundler-cache: true | |
- name: Run RSpec | |
run: bundle exec rspec | |
validate-yaml: | |
runs-on: ubuntu-latest | |
name: Validate merchants.yaml | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
- run: npm install -g ajv-cli | |
- run: ajv -s lib/yellow_pages/merchants.schema.json -d lib/yellow_pages/merchants.yaml --errors=text | |
- run: ajv -s lib/yellow_pages/categories.schema.json -d lib/yellow_pages/categories.yaml --errors=text |