Skip to content

Commit

Permalink
Merge pull request #403 from kleisauke/update-ci
Browse files Browse the repository at this point in the history
CI: various improvements
  • Loading branch information
jcupitt authored Aug 2, 2024
2 parents e230802 + 41f6e45 commit 572a6b9
Showing 1 changed file with 5 additions and 20 deletions.
25 changes: 5 additions & 20 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
name: Test

on:
push:
branches:
- master
pull_request:
pull_request_target:
branches:
- master
on: [push, pull_request]

env:
NOKOGIRI_USE_SYSTEM_LIBRARIES: true
Expand Down Expand Up @@ -36,7 +29,7 @@ jobs:

strategy:
matrix:
os-version: [ 'ubuntu-20.04' ]
os-version: [ 'ubuntu-24.04' ]
ruby-version:
- '2.3'
- '2.4'
Expand All @@ -62,19 +55,11 @@ jobs:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true

- name: Update apt
env:
DEBIAN_FRONTEND: noninteractive
run:
sudo apt-get update -qq -o Acquire::Retries=3

- name: Install libvips
env:
DEBIAN_FRONTEND: noninteractive
run:
run: |
sudo apt-get update
# we only need the library
sudo apt-get install --no-install-recommends --fix-missing -qq -o Acquire::Retries=3
libvips
sudo apt-get install --no-install-recommends libvips
- name: Run Tests
run: bundle exec rake spec

0 comments on commit 572a6b9

Please sign in to comment.