Skip to content

attempting to avoid the dockerfile and just use the docker compose #42

attempting to avoid the dockerfile and just use the docker compose

attempting to avoid the dockerfile and just use the docker compose #42

Workflow file for this run

name: Test Workflow
on:
push:
branches:
- main
pull_request:
branches:
- main
env:
GH_TOKEN: "${{secrets.GH_TOKEN}}"
FRONTEND_REPO_URL: "github.com/perfetti/react1-app.git"
BACKEND_REPO_URL: "github.com/perfetti/react2-app.git"
API_REPO_URL: "github.com/perfetti/rails-app.git"
FRONTEND_REF: "main"
BACKEND_REF: "main"
API_REF: "main"
FRONTEND_PUBLIC_URL: "//localhost:8089/"
BACKEND_PUBLIC_URL: "//localhost:8089/backend/"
WDS_SOCKET_PORT: "8089"
POSTGRES_USER: "postgres"
POSTGRES_PASSWORD: "postgres"
POSTGRES_DB: "perfetti"
RAILS_HOST: "api"
RAILS_ENV: "test"
DATABASE_HOST: "db"
DATABASE_USERNAME: "postgres"
RAILS_RELATIVE_URL_ROOT: "/api"
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: KengoTODA/actions-setup-docker-compose@v1
with:
version: "2.14.2"
- name: Checkout code
uses: actions/checkout@v2
with:
submodules: false
- name: Build and start Docker Compose services
run: bash ./setup_github.sh && echo "${FRONTEND_BUILD_CONTEXT}" && docker compose -f docker-compose.yaml up --build -d && cd test && npm run test:docker
- name: Recursively show cwd
run: |
pwd
ls -R
- name: Tear down Docker Compose services
run: docker-compose down