Merge pull request #84 from chocoby/update-zip-code-data #462
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: Build | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| types: [opened, synchronize, reopened] | |
| schedule: | |
| - cron: '0 0 * * 1' | |
| env: | |
| BUNDLE_RETRY: 3 | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout source | |
| uses: actions/checkout@v7 | |
| - name: Setup ruby | |
| uses: ruby/setup-ruby@v1 | |
| with: | |
| # Set to `TargetRubyVersion` in `.rubocop.yml` | |
| ruby-version: '2.7' | |
| bundler-cache: true | |
| - name: Lint | |
| run: bundle exec rubocop | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - { ruby: '2.4', gemfile: rails-5-0.gemfile } | |
| - { ruby: '2.7', gemfile: rails-5-0.gemfile } | |
| - { ruby: '2.4', gemfile: rails-5-1.gemfile } | |
| - { ruby: '2.7', gemfile: rails-5-1.gemfile } | |
| - { ruby: '2.4', gemfile: rails-5-2.gemfile } | |
| - { ruby: '2.5', gemfile: rails-5-2.gemfile } | |
| - { ruby: '2.7', gemfile: rails-5-2.gemfile } | |
| - { ruby: '2.6', gemfile: rails-6-0.gemfile } | |
| - { ruby: '4.0', gemfile: rails-6-0.gemfile } | |
| - { ruby: '2.6', gemfile: rails-6-1.gemfile } | |
| - { ruby: '4.0', gemfile: rails-6-1.gemfile } | |
| - { ruby: '2.7', gemfile: rails-7-0.gemfile } | |
| - { ruby: '4.0', gemfile: rails-7-0.gemfile } | |
| - { ruby: '2.7', gemfile: rails-7-1.gemfile } | |
| - { ruby: '3.0', gemfile: rails-7-1.gemfile } | |
| - { ruby: '4.0', gemfile: rails-7-1.gemfile } | |
| - { ruby: '3.1', gemfile: rails-7-2.gemfile } | |
| - { ruby: '4.0', gemfile: rails-7-2.gemfile } | |
| - { ruby: '3.2', gemfile: rails-8-0.gemfile } | |
| - { ruby: '4.0', gemfile: rails-8-0.gemfile } | |
| - { ruby: '3.2', gemfile: rails-8-1.gemfile } | |
| - { ruby: '3.3', gemfile: rails-8-1.gemfile } | |
| - { ruby: '3.4', gemfile: rails-8-1.gemfile } | |
| - { ruby: '4.0', gemfile: rails-8-1.gemfile } | |
| env: | |
| CI: true | |
| COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} | |
| BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }} | |
| steps: | |
| - name: Checkout source | |
| uses: actions/checkout@v7 | |
| - name: Setup System | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install libsqlite3-dev | |
| - name: Setup Ruby ${{ matrix.ruby }} | |
| uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: ${{ matrix.ruby }} | |
| bundler-cache: true | |
| - name: Test | |
| run: bundle exec rspec | |
| - name: Coveralls Parallel | |
| uses: coverallsapp/github-action@v2 | |
| with: | |
| parallel: true | |
| flag-name: run ${{ join(matrix.*, ' - ') }} | |
| path-to-lcov: ./coverage/lcov.info | |
| finish: | |
| needs: test | |
| if: ${{ always() }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Coveralls Finished | |
| uses: coverallsapp/github-action@v2 | |
| with: | |
| parallel-finished: true |