-
Notifications
You must be signed in to change notification settings - Fork 377
48 lines (46 loc) · 1.22 KB
/
test.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
name: Unit Test
on:
push:
workflow_call:
jobs:
test:
runs-on: ubuntu-latest
name: Test with ${{ matrix.engine.name }} ${{ matrix.engine.version }}
strategy:
fail-fast: false
matrix:
engine:
- name: ruby
version: '3.4'
- name: ruby
version: '3.3'
- name: ruby
version: '3.2'
- name: ruby
version: '3.1'
- name: ruby
version: '3.0'
- name: ruby
version: '2.7'
- name: ruby
version: '2.6'
- name: ruby
version: '2.5'
- name: jruby
version: '9.4'
- name: jruby
version: '9.3'
- name: jruby
version: '9.2'
container:
image: "ghcr.io/datadog/images-rb/engines/${{ matrix.engine.name }}:${{ matrix.engine.version }}"
steps:
- uses: actions/checkout@v4
- name: Bundle install
run: bundle install
- name: Appraisal install
run: bundle exec rake appraisal:install[${{ matrix.engine.name}}-${{ matrix.engine.version }}]
env:
APPRAISAL_DOCKER: 'false'
- name: Run the test
run: bundle exec rake test:all