update #1582
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |