mirror of
https://github.com/projekteuler/projekteuler.git
synced 2025-12-10 08:46:41 +01:00
Merge pull request #168 from projekteuler/use-github-actions
Use Github Actions for tests
This commit is contained in:
commit
2f8dd8d489
28
.github/workflows/ci.yml
vendored
Normal file
28
.github/workflows/ci.yml
vendored
Normal file
@ -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
|
||||
17
.travis.yml
17
.travis.yml
@ -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
|
||||
@ -1,7 +1,7 @@
|
||||
Projekt Euler
|
||||
=============
|
||||
|
||||
[](https://travis-ci.org/projekteuler/projekteuler)
|
||||

|
||||
[](https://www.codacy.com/app/projekteuler/projekteuler)
|
||||
|
||||
This is the Ruby on Rails web-app powering [projekteuler.de](https://projekteuler.de).
|
||||
|
||||
Loading…
Reference in New Issue
Block a user