chore: add fundings #23
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: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
# Allow running manually the CI workflow. | |
workflow_dispatch: | |
# This allows a subsequently queued workflow run to interrupt previous runs. | |
concurrency: | |
group: '${{ github.workflow }} @ ${{ github.ref }}' | |
cancel-in-progress: true | |
jobs: | |
tests: | |
runs-on: ${{ matrix.os }}-latest | |
strategy: | |
matrix: | |
ruby: | |
- head | |
- '3.2' | |
- '3.1' | |
- '3.0' | |
- '2.7' | |
- "jruby" | |
os: | |
- ubuntu | |
- macos | |
steps: | |
- name: Set Up Gems | |
uses: actions/checkout@v2 | |
- name: Install Geos (Linux) | |
if: matrix.os == 'ubuntu' | |
run: | | |
sudo apt-add-repository ppa:ubuntugis/ubuntugis-unstable | |
sudo apt-get install -yqq libgeos-dev | |
- name: Install Geos (Mac) | |
if: matrix.os == 'macos' | |
run: HOMEBREW_NO_INSTALL_CLEANUP=1 brew install geos | |
- name: Set Up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby }} | |
bundler-cache: true | |
- name: Test | |
run: bundle exec rake | |
RuboCop: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 'head' | |
bundler-cache: true | |
- run: | | |
bundle exec rubocop --color --parallel |