Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 6 additions & 23 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,14 @@
name: Ruby CI

on:
push:
branches:
- master
- develop
pull_request:
types: [synchronize, opened, reopened]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.1'

- name: Install dependencies
run: |
gem install bundler
bundle install

- name: Run tests
run: bundle exec rake test

sonar-cloud-check:
runs-on: ubuntu-latest

Expand All @@ -37,15 +20,15 @@ jobs:
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.1'
ruby-version: "3.1"

- name: Install dependencies
run: |
gem install bundler
bundle install

- name: Run tests with coverage
run: bundle exec rake test
run: bundle exec rake test

- name: SonarQube Scan
uses: sonarsource/sonarqube-scan-action@master
Expand Down