-
Notifications
You must be signed in to change notification settings - Fork 71
53 lines (50 loc) · 1.35 KB
/
unittestlib.yml
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
name: Unit test library methods
on:
push:
paths:
- '**/unittestlib.yml'
- 'lib/**'
workflow_dispatch:
permissions: # added using https://github.com/step-security/secure-workflows
contents: read
jobs:
test:
strategy:
fail-fast: false
matrix:
os: [macos-13, ubuntu-20.04, ubuntu-22.04]
ruby: [2.7, 3.1]
# 2.7 not supported on 22.04
exclude:
- os: ubuntu-22.04
ruby: 2.7
# LDAP does not work on 24.04 (needs patch)
# include:
# - os: ubuntu-24.04
# ruby: 3.2
runs-on: ${{ matrix.os }}
steps:
- name: setup non-macOS # needed for installing ruby-ldap
if: ${{ runner.os != 'macOS' }}
run: |
sudo apt-get update
sudo apt-get install libldap2-dev
sudo apt-get install libsasl2-dev
sudo apt-get install libyaml-dev # seems to be needed for installing ruby since psych 5.0.0 release
- name: setup macos
if: ${{ runner.os == 'macOS' }}
run: |
brew install subversion
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: test library code
run: |
cd lib
bundle install
bundle exec rake