-
Notifications
You must be signed in to change notification settings - Fork 2
49 lines (43 loc) · 1.05 KB
/
test.yml
File metadata and controls
49 lines (43 loc) · 1.05 KB
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
name: Test
on:
push:
branches: [ 'master' ]
pull_request:
branches: [ 'master' ]
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
ruby-version: ['2.7', '3.0', '3.1', '3.2', '3.3', '3.4']
name: Ruby ${{ matrix.ruby-version }}
steps:
- uses: actions/checkout@v6
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true
- name: Run Rubocop
run: bundle exec rake rubocop
- name: Run Unit Tests
run: bundle exec rake spec
integration:
runs-on: ubuntu-latest
name: Integration
steps:
- uses: actions/checkout@v6
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.4'
bundler-cache: true
- name: Cache Image
uses: jamesmortensen/cache-container-images-action@v1
with:
images: |
docker://ghcr.io/gsi-hpc/ona-dev:latest
- name: Run Integration Tests
run: bundle exec rake integration