This file contains hidden or 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
| version: '3.8' | |
| services: | |
| test: | |
| image: ${TEST_IMAGE_TAG:-test} | |
| depends_on: | |
| - database | |
| - chrome | |
| environment: | |
| HUB_URL: http://chrome:4444/wd/hub |
This file contains hidden or 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
| name: Test with Dockerfiles | |
| on: [push] | |
| jobs: | |
| test: | |
| env: | |
| RAILS_ENV: test | |
| NODE_ENV: test | |
| runs-on: ubuntu-latest # runner |
This file contains hidden or 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
| version: '3.8' | |
| services: | |
| test: | |
| image: ${TEST_IMAGE_TAG:-test} | |
| environment: | |
| HUB_URL: http://chrome:4444/wd/hub | |
| PARALLEL_WORKERS: 1 # makes tests run sequentially instead of simultaneously | |
| command: > | |
| bash -c "rails test && rails test:system" |
This file contains hidden or 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
| name: Test with service containers | |
| on: [push] | |
| jobs: | |
| test: | |
| env: | |
| RAILS_ENV: test | |
| NODE_ENV: test | |
| runs-on: ubuntu-latest # runner |