Skip to content

Commit

Permalink
Merge pull request #3 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 6, 2023
2 parents 7b43e6d + e1a5018 commit 0fb7a0f
Show file tree
Hide file tree
Showing 16 changed files with 125 additions and 347 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
2 changes: 0 additions & 2 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
inherit_from: .rubocop_todo.yml

inherit_gem:
konvenit_style: rails/rubocop.yml

Expand Down
234 changes: 0 additions & 234 deletions .rubocop_todo.yml

This file was deleted.

1 change: 1 addition & 0 deletions .ruby-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.0.3
22 changes: 0 additions & 22 deletions .travis.yml

This file was deleted.

5 changes: 2 additions & 3 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
source 'https://rubygems.org'
source "https://rubygems.org"

# Specify your gem's dependencies in ustidnr_validator.gemspec
gemspec

group :development do
group :development, :test do
gem "konvenit_style", git: "git@github.com:konvenit/konvenit_style.git"
end

11 changes: 0 additions & 11 deletions Guardfile

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# UstidnrValidator [![Build Status](https://travis-ci.com/konvenit/ustidnr_validator.svg?branch=master)](https://travis-ci.com/konvenit/ustidnr_validator)
# UstidnrValidator [![CI](https://github.com/konvenit/ustidnr_validator/actions/workflows/ci.yml/badge.svg)](https://github.com/konvenit/ustidnr_validator/actions/workflows/ci.yml)

This is simple wraper for the xmlrpc https://evatr.bff-online.de/eVatR/xmlrpc/

Expand Down
12 changes: 6 additions & 6 deletions lib/ustidnr_validator.rb
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
require "ustidnr_validator/version"
require "active_model"
require 'active_support'
require 'logger'
require "active_support/core_ext/module/attribute_accessors"
require "logger"

module UstidnrValidator
extend ActiveSupport::Autoload

autoload :Base, 'ustidnr_validator/base'
autoload :Company, 'ustidnr_validator/company'
autoload :RpcClient, 'ustidnr_validator/rpc_client'
autoload :Base, "ustidnr_validator/base"
autoload :Company, "ustidnr_validator/company"
autoload :RpcClient, "ustidnr_validator/rpc_client"

mattr_accessor :owner_ustid
mattr_accessor :log_dir
mattr_accessor :external_logger

def self.logger
@@logger ||= (external_logger || build_logger)
@@logger ||= (external_logger || build_logger)
end

def self.build_logger
Expand Down
Loading

0 comments on commit 0fb7a0f

Please sign in to comment.