From a2212d1b11659a9aa27c9e7f40fbe1ede2f8b556 Mon Sep 17 00:00:00 2001 From: Benjamin Neff Date: Tue, 29 Jun 2021 01:27:45 +0200 Subject: [PATCH] Switch to github actions --- .github/workflows/ci.yml | 35 +++++++++++++++++++++++++++++++ .travis.yml | 22 ------------------- test/scripts/{travis.sh => ci.sh} | 0 3 files changed, 35 insertions(+), 22 deletions(-) create mode 100644 .github/workflows/ci.yml delete mode 100644 .travis.yml rename test/scripts/{travis.sh => ci.sh} (100%) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..1591a1f --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,35 @@ +name: CI +on: + push: + branches: + - develop + - main + - master + pull_request: + +jobs: + test: + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + ruby: + - 2.6 + - 2.5 + gemfile: + - Gemfile + - test/gemfiles/no-rails.Gemfile + env: + BUNDLE_GEMFILE: ${{ matrix.gemfile }} + BUNDLE_WITHOUT: development + BUNDLE_FROZEN: true + BUNDLE_DISABLE_SHARED_GEMS: true + CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }} + steps: + - uses: actions/checkout@v2 + - uses: ruby/setup-ruby@v1 + with: + ruby-version: ${{ matrix.ruby }} + bundler-cache: true + - name: Run tests + run: test/scripts/ci.sh diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 69c695b..0000000 --- a/.travis.yml +++ /dev/null @@ -1,22 +0,0 @@ -language: ruby - -rvm: - - 2.6.5 - - 2.5.7 -gemfile: - - Gemfile - - test/gemfiles/no-rails.Gemfile - -sudo: false -cache: - bundler: true - -branches: - only: - - 'master' - - 'develop' - -before_install: gem install bundler -v 1.17.3 -bundler_args: "--deployment --without development --jobs=3 --retry=3" - -script: test/scripts/travis.sh diff --git a/test/scripts/travis.sh b/test/scripts/ci.sh similarity index 100% rename from test/scripts/travis.sh rename to test/scripts/ci.sh