Skip to content

update

update #1582

Workflow file for this run

on: [push]
jobs:
rubocop:
runs-on: ubuntu-latest
name: A job to codecov report.
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- run: docker-compose pull
working-directory: docker/development
- uses: satackey/[email protected]
continue-on-error: true
- name: Install dependencies
working-directory: docker/development
run: |
docker-compose run --entrypoint="" mampf sh -c "RAILS_ENV=test rails db:create"
docker-compose run --entrypoint="" mampf sh -c "RAILS_ENV=test rails db:migrate"
docker-compose run --entrypoint="" mampf sh -c "RAILS_ENV=test rails db:test:prepare"
- name: Create database
working-directory: docker/development
run: |
docker-compose run --entrypoint="" mampf sh -c "RAILS_ENV=test rake sunspot:reindex"
- name: Run tests
working-directory: docker/development
run: docker-compose run --entrypoint="" mampf sh -c "RAILS_ENV=test rails spec"
- name: Send test coverage report to codecov.io
uses: codecov/codecov-action@v1
with:
file: ./coverage/.resultset.json