-
Notifications
You must be signed in to change notification settings - Fork 65
44 lines (39 loc) · 1.2 KB
/
integrations-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
name: CI - Integrations
on:
push:
paths:
- "integrations/**"
env:
CI: true
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
ruby-version: [3.2.0]
steps:
- uses: actions/checkout@v2
- name: Set up Ruby ${{ matrix.ruby-version }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
- name: Install dependencies
run: |
gem install bundler
bundle install --jobs 4 --retry 3
working-directory: ./integrations
- name: Run tests with code coverage
run: COVERAGE=true bundle exec rspec
working-directory: ./integrations
- name: Install Code Climate Test Reporter
run: |
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
chmod +x ./cc-test-reporter
working-directory: ./integrations
- name: Push coverage data to Code Climate
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
run: |
./cc-test-reporter before-build
./cc-test-reporter after-build --exit-code $?
working-directory: ./integrations