-
Notifications
You must be signed in to change notification settings - Fork 3
53 lines (52 loc) · 1.74 KB
/
test.yaml
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: Test
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: read
jobs:
test-current:
strategy:
matrix:
os: [ubuntu-latest]
ruby: ["3.1", "3.2", "3.3"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4
- name: Set up Ruby ${{ matrix.ruby }}
uses: ruby/setup-ruby@7bae1d00b5db9166f4f0fc47985a3a5702cb58f0 # v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Installing dependencies
run: |
bundle check --path=vendor/bundle || bundle install --path=vendor/bundle
bundle exec appraisal install --path=vendor/bundle
- name: Run tests
run: bundle exec appraisal rake test
test-3_0:
strategy:
matrix:
os: [ubuntu-latest]
ruby: ["3.0"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4
- name: Set up Ruby ${{ matrix.ruby }}
uses: ruby/setup-ruby@7bae1d00b5db9166f4f0fc47985a3a5702cb58f0 # v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Installing dependencies
run: |
bundle check --path=vendor/bundle || bundle install --path=vendor/bundle
bundle exec appraisal ar-6.1 bundle install --path=vendor/bundle
bundle exec appraisal ar-7.0 bundle install --path=vendor/bundle
bundle exec appraisal ar-7.1 bundle install --path=vendor/bundle
- name: Run tests
run: |
bundle exec appraisal ar-6.1 rake test
bundle exec appraisal ar-7.0 rake test
bundle exec appraisal ar-7.1 rake test