mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Switch to github actions
👋 travis, it was nice while it lasted! ❤️
This commit is contained in:
parent
a3721cb298
commit
be6464ff83
7 changed files with 84 additions and 81 deletions
34
.github/workflows/spec.yml
vendored
Normal file
34
.github/workflows/spec.yml
vendored
Normal 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 }}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue