diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 00000000..d2fae664 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,72 @@ +name: Test + +on: + push: + branches: [ $default-branch ] + pull_request: + +env: + NOKOGIRI_USE_SYSTEM_LIBRARIES: true + SPEC_OPTS: '--backtrace' + +jobs: + test: + name: Functional Testing + runs-on: ubuntu-20.04 # In order to install libvips 8.9+ version + + strategy: + matrix: + ruby-version: + - 2.1 + - 2.2 + - 2.3 + - 2.4 + - 2.5 + - 2.6 + - 2.7 + - jruby + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Set up Ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: ${{ matrix.ruby-version }} + bundler-cache: true + + - name: Updates apt + env: + DEBIAN_FRONTEND: noninteractive + run: sudo apt-get update -qq -o Acquire::Retries=3 + + - name: Install libvips + env: + DEBIAN_FRONTEND: noninteractive + run: + sudo apt install --fix-missing -qq --no-install-recommends -o Acquire::Retries=3 + libvips libvips-dev libvips-tools + gettext + libcfitsio-dev + libexpat1-dev + libfftw3-dev + libgif-dev + libglib2.0-dev + libgsf-1-dev + libjpeg-turbo8-dev + liblcms2-dev + libmagickwand-dev + libmatio-dev + libopenexr-dev + libopenslide-dev + liborc-0.4-dev + libpango1.0-dev + libpoppler-glib-dev + libtiff5-dev + libwebp-dev + librsvg2-dev + libmagick++-dev + + - name: Run Tests + run: bundle exec rake spec