From 033446f8bc060ca6767c410d31811082eab94652 Mon Sep 17 00:00:00 2001 From: Rob Scanlon Date: Wed, 23 Jun 2021 16:38:11 -0400 Subject: [PATCH] Update to github workflow. --- .github/workflows/ruby.yml | 26 ++++++++++++++++++++++++++ .travis.yml | 25 ------------------------- 2 files changed, 26 insertions(+), 25 deletions(-) create mode 100644 .github/workflows/ruby.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/ruby.yml b/.github/workflows/ruby.yml new file mode 100644 index 0000000..8eda426 --- /dev/null +++ b/.github/workflows/ruby.yml @@ -0,0 +1,26 @@ +name: Ruby + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + test: + runs-on: ubuntu-latest + strategy: + matrix: + ruby-version: ['2.6', '2.7'] + + steps: + - uses: actions/checkout@v2 + - name: Set up Ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: ${{ matrix.ruby-version }} + bundler-cache: true # runs 'bundle install' and caches installed gems automatically + - name: Run tests + run: bundle exec rake + - name: Rubocop + run: bundle exec rubocop \ No newline at end of file diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 0826ee9..0000000 --- a/.travis.yml +++ /dev/null @@ -1,25 +0,0 @@ -language: ruby -env: - - TESTMEMORY=0 GCDELAY=2.0 -rvm: - - 2.6 - - 2.7 -before_script: - - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter - - chmod +x ./cc-test-reporter - - ./cc-test-reporter before-build -script: - - bundle exec rake -after_script: - - ./cc-test-reporter after-build -t simplecov --exit-code $TRAVIS_TEST_RESULT -notifications: - email: - recipients: - - fhir-testing-list@lists.mitre.org - on_failure: change -addons: - code_climate: - repo_token: 0230b3379581b30743b7b4355d7394e427648e604d19a2aba987956201eee290 -before_install: - - gem update --system - - gem install bundler