forked from lounna-team/hubspot-api-ruby
-
Notifications
You must be signed in to change notification settings - Fork 6
33 lines (33 loc) · 999 Bytes
/
actions.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
name: tests
on: push
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
ruby:
- '3.1.x'
active_support:
- 'active_support_6.0.x'
- 'active_support_6.1.x'
- 'active_support_7.0.x'
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Setup Ruby
uses: actions/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- name: Bundle
env:
ACTIVE_SUPPORT_VERSION: ${{ matrix.active_support }}
run: |
export BUNDLE_GEMFILE="${GITHUB_WORKSPACE}/gemfiles/${ACTIVE_SUPPORT_VERSION}.gemfile"
gem install bundler
bundle install --jobs 4 --retry 3
- name: Test
env:
HUBSPOT_PORTAL_ID: ${{ secrets.HUBSPOT_PORTAL_ID }}
HUBSPOT_HAPI_KEY: ${{ secrets.HUBSPOT_HAPI_KEY }}
HUBSPOT_ACCESS_TOKEN: ${{ secrets.HUBSPOT_ACCESS_TOKEN }}
run: RUBYOPT='-W:deprecated' bundle exec rspec