-
Notifications
You must be signed in to change notification settings - Fork 20
46 lines (33 loc) · 960 Bytes
/
run-tests.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
name: build
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
ruby-version: [3.3.1, 3.2.4, 3.1.5, 3.0.7]
steps:
- uses: actions/checkout@v4
- name: Start containers
run: docker compose -f docker-compose.yml up -d
- name: Set up Ruby ${{ matrix.ruby-version }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
- name: Install dependencies
run: sudo apt-get install libsasl2-dev
- name: Install gems
run: bundle install
- name: Run tests
run: bundle exec rake test
- name: Install appraisals
run: bundle exec appraisal install
- name: Run appraisals
run: bundle exec appraisal rake test
- name: Stop containers
if: always()
run: docker compose -f "docker-compose.yml" down