Switch to github actions

👋 travis, it was nice while it lasted! ❤️
This commit is contained in:
Henne Vogelsang 2021-03-05 17:20:31 +01:00
parent a3721cb298
commit be6464ff83
No known key found for this signature in database
GPG key ID: 9D6164C2955FADE0
7 changed files with 84 additions and 81 deletions

34
.github/workflows/spec.yml vendored Normal file
View file

@ -0,0 +1,34 @@
name: Specs
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:
jobs:
spec:
runs-on: ubuntu-latest
name: spec
env:
OSEM_DB_ADAPTER: sqlite3
OSEM_RUBY_VERSION: 2.5.8
RAILS_ENV: test
strategy:
matrix:
suite: [models, features, controllers, ability, leftovers]
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.5
bundler-cache: true
- name: Prepare spec
run: |
rm -f osem_test osem_development
bundle exec rake db:setup --trace
bundle exec bin/rails webdrivers:chromedriver:update
- name: spec/${{ matrix.suite }}
run: bundle exec rake spec:${{ matrix.suite }}