-
Notifications
You must be signed in to change notification settings - Fork 4
37 lines (35 loc) · 1017 Bytes
/
specs.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
name: Run specs
on:
pull_request:
branches:
- develop
push:
branches:
- develop
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Ruby 2.7
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
bundler-cache: true
- name: Run specs
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
run: bundle exec rspec
- name: SonarQube Scan
uses: sonarsource/sonarcloud-github-action@master
with:
args: >
-Dsonar.projectKey=rdytech_patches_4fe7fcf4-bbfc-4b19-be78-87e73d1f301e
-Dsonar.host.url=https://sonarqube.readytech.io
-Dsonar.sources=lib/
-Dsonar.inclusions=**/*.rb
-Dsonar.tests=spec/
-Dsonar.ruby.coverage.reportPaths=coverage/.resultset.json
-Dsonar.plugins.downloadOnlyRequired=true
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}