Merge OSEM updates
This commit is contained in:
commit
d1ca21f479
50 changed files with 338 additions and 382 deletions
52
.github/workflows/spec.yml
vendored
Normal file
52
.github/workflows/spec.yml
vendored
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
name: Specs
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ master ]
|
||||
pull_request:
|
||||
branches: [ master ]
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
linters:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
OSEM_RUBY_VERSION: 2.5.8
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: ruby/setup-ruby@v1
|
||||
with:
|
||||
ruby-version: 2.5
|
||||
bundler-cache: true
|
||||
- run: bundle exec rubocop
|
||||
- run: bundle exec haml-lint app/views
|
||||
spec:
|
||||
needs: linters
|
||||
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 }}
|
||||
- name: coverage upload ${{ matrix.suite }}
|
||||
uses: codacy/codacy-coverage-reporter-action@master
|
||||
if: github.ref == 'refs/heads/master'
|
||||
with:
|
||||
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
|
||||
coverage-reports: coverage/coverage.xml
|
||||
Loading…
Add table
Add a link
Reference in a new issue