Skip to content

Instantly share code, notes, and snippets.

@isabelatravaglia
isabelatravaglia / docker-compose.test.yml
Last active May 25, 2021
GHA test workflow - docker-compose using the images built with Dockerfiles
View docker-compose.test.yml
version: '3.8'
services:
test:
image: ${TEST_IMAGE_TAG:-test}
depends_on:
- database
- chrome
environment:
HUB_URL: http://chrome:4444/wd/hub
@isabelatravaglia
isabelatravaglia / test.yml
Last active May 25, 2021
GHA test workflow - Building all the containers using Dockerfiles
View test.yml
name: Test with Dockerfiles
on: [push]
jobs:
test:
env:
RAILS_ENV: test
NODE_ENV: test
runs-on: ubuntu-latest # runner
@isabelatravaglia
isabelatravaglia / docker-compose.test.services.yml
Last active May 24, 2021
GHA test workflow - docker-compose
View docker-compose.test.services.yml
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"
@isabelatravaglia
isabelatravaglia / test-services.yml
Last active May 25, 2021
GHA test workflow - Using GHA service containers
View test-services.yml
name: Test with service containers
on: [push]
jobs:
test:
env:
RAILS_ENV: test
NODE_ENV: test
runs-on: ubuntu-latest # runner