-
Notifications
You must be signed in to change notification settings - Fork 23
48 lines (43 loc) · 1.29 KB
/
ci.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: Ruby-ci
on:
push:
branches: [ "*" ]
pull_request:
branches: [ "master" ]
env:
ACCOUNT_ID: ${{ secrets.ACCOUNT_ID }}
API_KEY: ${{ secrets.API_KEY }}
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
ruby-version: ['2.4.2']
steps:
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@55283cc23133118229fd3f97f9336ee23a179fcf # v1.146.0
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: Run tests
run: bundle exec rspec --format RspecJunitFormatter --out test_results/rspec.xml --format progress
run_integration_tests:
runs-on: ubuntu-latest
strategy:
matrix:
ruby-version: [ '2.4.2' ]
steps:
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@55283cc23133118229fd3f97f9336ee23a179fcf # v1.146.0
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: Run tests
run: |
bundle check
bundle install
bundle exec ruby test_integration_app/main.rb