From 471f7a3c44b28c1ea0d2a347626d1f7bc30bc751 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20A=C3=9Fmann?= Date: Thu, 17 Feb 2022 07:37:40 +0100 Subject: [PATCH] add github actions as travis replacement to enable codeclimate one would need to add the reporter-id to the github repository secrets --- .github/workflows/ci.yml | 34 ++++++++++++++++++++++++++++++++++ .travis.yml | 3 ++- 2 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..f8e27b3 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,34 @@ +name: Run tests + +on: [push, pull_request] + +defaults: + run: + shell: bash + + +jobs: + specs: + name: 'run-specs' + # skip on [ci skip] and do not run 2 on push and interal PR + if: (contains(github.event.commits[0].message, '[ci skip]') == false) && (github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository) + continue-on-error: ${{ matrix.allow_failure || false }} + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - uses: ruby/setup-ruby@v1 + with: + ruby-version: 3.1.0 + bundler-cache: true + + - name: run specs + run: | + bundle exec rake + + # needs the right code climate reporter id + # - name: Test & publish code coverage + # uses: paambaati/codeclimate-action@v3.0.0 + # env: + # CC_TEST_REPORTER_ID: diff --git a/.travis.yml b/.travis.yml index f3cb387..d4543d0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,7 @@ language: ruby rvm: - - 2.6.0 + - 2.7.5 + - 3.1.0 before_script: - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter - chmod +x ./cc-test-reporter