-
Notifications
You must be signed in to change notification settings - Fork 2
47 lines (44 loc) · 1.32 KB
/
continuous-integration.yml
File metadata and controls
47 lines (44 loc) · 1.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: Continuous Integration
on:
pull_request:
push:
jobs:
static_analysis:
name: Rubocop
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: "3.3"
bundler-cache: true
- name: Rubocop
run: bundle exec rubocop --format github --parallel
test:
strategy:
fail-fast: false
matrix:
# NOTE:
# - ubuntu-20.04 has GDAL 3.0.4, PROJ 6.3.1, GEOS 3.8.0
# - ubuntu-22.04 has GDAL 3.4.1, PROJ 8.2.1, GEOS 3.10.2
# - ubuntu-24.04 has GDAL 3.8.4, PROJ 9.4.0, GEOS 3.12.1
os: ["ubuntu-20.04", "ubuntu-22.04", "ubuntu-24.04"]
ruby-version: ["2.6", "2.7", "3.0", "3.1", "3.2", "3.3"]
name: "Test on Ruby ${{ matrix.ruby-version }} on ${{ matrix.os }}"
runs-on: ${{ matrix.os }}
steps:
- name: Install GDAL
run:
sudo apt-get install -y --no-install-recommends libgdal-dev
librttopo-dev
- uses: actions/checkout@v5
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true
- name: Run specs
run:
bundle exec rspec spec --format RSpec::Github::Formatter --format
progress