diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..aef906f --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,28 @@ +name: CI +on: + push: + branches: [ $default-branch ] + pull_request: +jobs: + test: + runs-on: ubuntu-latest + strategy: + matrix: + ruby: ['2.5', '2.6', '2.7'] + steps: + - uses: actions/checkout@v2 + - name: Set up Ruby ${{ matrix.ruby }} + uses: ruby/setup-ruby@v1 + with: + ruby-version: ${{ matrix.ruby }} + bundler-cache: true + - name: Set up Node + uses: actions/setup-node@v2-beta + with: + node-version: '14' + - name: Install dependencies + run: bundle install --without production + - name: Run tests + run: bundle exec rake + env: + RAILS_ENV: test diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index b8694a6..0000000 --- a/.travis.yml +++ /dev/null @@ -1,17 +0,0 @@ -dist: focal -language: ruby -cache: bundler -rvm: - - 2.7 - - 2.6 - - 2.5 -node_js: - - 14 -bundler_args: --without production -before_install: - - yes | gem update --system --force - - gem install bundler -script: - - export RAILS_ENV=test - - bundle exec rake db:schema:load - - bundle exec rake test diff --git a/README.md b/README.md index a464e29..2a91c5b 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ Projekt Euler ============= -[![Build Status](https://travis-ci.com/projekteuler/projekteuler.svg?branch=master)](https://travis-ci.org/projekteuler/projekteuler) +![Build Status](https://github.com/projekteuler/projekteuler/workflows/CI/badge.svg) [![Codacy Badge](https://api.codacy.com/project/badge/Grade/68921bff5347435f8fff10c1d6872568)](https://www.codacy.com/app/projekteuler/projekteuler) This is the Ruby on Rails web-app powering [projekteuler.de](https://projekteuler.de).