Skip to content

Commit

Permalink
feat: move integrations gem github actions to root
Browse files Browse the repository at this point in the history
  • Loading branch information
karthik-sivadas committed Apr 5, 2024
1 parent 959de3b commit 36aa25a
Show file tree
Hide file tree
Showing 4 changed files with 67 additions and 61 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/integrations-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
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
37 changes: 37 additions & 0 deletions .github/workflows/integrations-main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Ruby - Integrations

on:
push:
branches:
- main
paths:
- "integrations/**"

pull_request:
paths:
- "integrations/**"

jobs:
build:
runs-on: ubuntu-latest
name: Ruby ${{ matrix.ruby }}
strategy:
matrix:
ruby:
- "3.2.0"

steps:
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true

- name: Install dependencies
run: bundle install
working-directory: ./integrations

- name: Run the default task
run: bundle exec rake
working-directory: ./integrations
34 changes: 0 additions & 34 deletions integrations/.github/workflows/ci.yml

This file was deleted.

27 changes: 0 additions & 27 deletions integrations/.github/workflows/main.yml

This file was deleted.

0 comments on commit 36aa25a

Please sign in to comment.