Skip to content

Commit

Permalink
Merge pull request #7 from konvenit/MP-48514-migrate-to-gh-actions
Browse files Browse the repository at this point in the history
MP-48514 migrate to gh-actions
  • Loading branch information
stereosupersonic authored Jul 5, 2023
2 parents 6408854 + b3ec38e commit 1d1e5eb
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 13 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: CI

on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
test:
runs-on: ubuntu-22.04

strategy:
matrix:
rvm:
- '3.0'
- '3.1'
name: Ruby ${{ matrix.ruby }} test
steps:
- name: Add SSH key
# this is needed to access private repositories
run: |
mkdir -p ~/.ssh
echo "${{ secrets.PRIVATE_REPO_PRIVATE_KEY }}" > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
echo ${{ secrets.PRIVATE_REPO_KNOW_HOST }} >> ~/.ssh/known_hosts
- name: Checkout code
uses: actions/checkout@v2

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

- name: Install dependencies
run: bundle install

- name: Run RuboCop
run: bundle exec rubocop

- name: Run RSpec
env:
JENKINS: true
run: bundle exec rspec --profile
13 changes: 0 additions & 13 deletions .travis.yml

This file was deleted.

0 comments on commit 1d1e5eb

Please sign in to comment.