-
-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (33 loc) · 1002 Bytes
/
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
name: Test
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
permissions:
contents: read
# limit concurrency to work around a problem with the sessions
concurrency:
group: jaytest-instance
cancel-in-progress: false
jobs:
test:
runs-on: ubuntu-latest
strategy:
# one at a time because concurrent runs invalidate each other
max-parallel: 1
matrix:
# test with multiple versions of ruby, must include the version in .ruby-version
ruby-version: ['2.5.9', '2.7.8']
steps:
- uses: actions/checkout@v4
- name: Install libcurl dev headers
# `curb` gem dependency
run: sudo apt-get install libcurl4-openssl-dev
- name: Set up Ruby ${{ matrix.ruby-version }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: Run tests
run: bundle exec rake