8000 Merge pull request #258 from jetthoughts/setup-github-actions · libvips/ruby-vips@4597869 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4597869

Browse files
authored
Merge pull request #258 from jetthoughts/setup-github-actions
Adds GitHub Actions for unlimited CI and faster feedback
2 parents 5540b59 + 0ebb965 commit 4597869

File tree

1 file changed

+72
-0
lines changed

1 file changed

+72
-0
lines changed

.github/workflows/test.yml

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
name: Test
2+
3+
on:
4+
push:
5+
branches: [ $default-branch ]
6+
pull_request:
7+
8+
env:
9+
NOKOGIRI_USE_SYSTEM_LIBRARIES: true
10+
SPEC_OPTS: '--backtrace'
11+
12+
jobs:
13+
test:
14+
name: Functional Testing
15+
runs-on: ubuntu-20.04 # In order to install libvips 8.9+ version
16+
17+
strategy:
18+
matrix:
19+
ruby-version:
20+
- 2.1
21+
- 2.2
22+
- 2.3
23+
- 2.4
24+
- 2.5
25+
- 2.6
26+
- 2.7
27+
- jruby
28+
29+
steps:
30+
- name: Checkout code
31+
uses: actions/checkout@v2
32+
33+
- name: Set up Ruby
34+
uses: ruby/setup-ruby@v1
35+
with:
36+
ruby-version: ${{ matrix.ruby-version }}
37+
bundler-cache: true
38+
39+
- name: Updates apt
40+
env:
41+
DEBIAN_FRONTEND: noninteractive
42+
run: sudo apt-get update -qq -o Acquire::Retries=3
43+
44+
- name: Install libvips
45+
env:
46+
DEBIAN_FRONTEND: noninteractive
47+
run:
48+
sudo apt install --fix-missing -qq --no-install-recommends -o Acquire::Retries=3
49+
libvips libvips-dev libvips-tools
50+
gettext
51+
libcfitsio-dev
52+
libexpat1-dev
53+
libfftw3-dev
54+
libgif-dev
55+
libglib2.0-dev
56+
libgsf-1-dev
57+
libjpeg-turbo8-dev
58+
liblcms2-dev
59+
libmagickwand-dev
60+
libmatio-dev
61+
libopenexr-dev
62+
libopenslide-dev
63+
liborc-0.4-dev
64+
libpango1.0-dev
65+
libpoppler-glib-dev
66+
libtiff5-dev
67+
libwebp-dev
68+
librsvg2-dev
69+
libmagick++-dev
70+
71+
- name: Run Tests
72+
run: bundle exec rake spec

0 commit comments

Comments
 (0)
0