Support RubyZip 3. #242
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: CI | |
| on: | |
| push: | |
| branches: [master] | |
| pull_request: | |
| branches: [master] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| ruby-version: ["3.2"] | |
| gemfile: ["rails_7_0"] | |
| fail-fast: false | |
| env: | |
| BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile | |
| BUNDLE_PATH_RELATIVE_TO_CWD: true | |
| RAILS_ENV: test | |
| POSTGRES_USER: postgres | |
| POSTGRES_PASSWORD: postgres | |
| services: | |
| postgres: | |
| image: postgis/postgis | |
| ports: | |
| - 5432:5432 | |
| env: | |
| POSTGRES_DB: spatial_features_test | |
| POSTGRES_USER: postgres | |
| POSTGRES_PASSWORD: postgres | |
| options: >- | |
| --health-cmd pg_isready | |
| --health-interval 10s | |
| --health-timeout 5s | |
| --health-retries 5 | |
| steps: | |
| - uses: actions/checkout@v2 | |
| # libgeos and gdal are required and must be installed before `bundle install` | |
| # NB: if you add libs here that are required for Gem native extensions be sure to clear the | |
| # bundle cache in `ruby/setup-ruby` so that the gems are re-compiled | |
| - name: Install GEOS | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install libgeos-dev libgeos-c1v5 libproj-dev gdal-bin -y | |
| - name: Set up Ruby | |
| uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: ${{ matrix.ruby-version }} | |
| bundler-cache: true # runs 'bundle install' and caches installed gems automatically | |
| cache-version: 4 | |
| - name: Run tests | |
| run: bundle exec rspec |