-
Notifications
You must be signed in to change notification settings - Fork 2
58 lines (52 loc) · 1.41 KB
/
_test-units.yml
File metadata and controls
58 lines (52 loc) · 1.41 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
48
49
50
51
52
53
54
55
56
57
58
#
# Run full unit tests.
#
name: Unit Tests - All Dependencies
on:
workflow_call:
jobs:
tests:
name: Run Unit Tests
timeout-minutes: 30
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- "ubuntu-24.04"
- "macos-latest"
ruby:
- "3.2"
- "3.3"
- "3.4"
- "4.0"
steps:
- uses: actions/checkout@v5
with:
submodules: recursive
- name: set up Ruby ${{ matrix.ruby }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Install Ghostscript on Ubuntu
if: runner.os == 'Linux'
run: |
sudo apt update
sudo apt-get install -y ghostscript imagemagick
- name: Install Ghostscript and ImageMagick on macOS
if: runner.os == 'macOS'
run: |
brew install ghostscript imagemagick
/usr/bin/security find-certificate -a -p /System/Library/Keychains/SystemRootCertificates.keychain
- name: Change ImageMagick security policy on Ubuntu
if: runner.os == 'Linux'
run: |
DQT='"'
SRC="rights=${DQT}none${DQT} pattern=${DQT}PDF${DQT}"
RPL="rights=${DQT}read|write${DQT} pattern=${DQT}PDF${DQT}"
sudo sed -i "s/$SRC/$RPL/" /etc/ImageMagick-6/policy.xml
- name: Run Rspec
env:
MINDEE_LOG_LEVEL: DEBUG
run: |
bundle exec rake spec