@icalialabs/run-ci-compose
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

Run ci-compose

Runs a Docker Compose service defined in a custom compose file called "ci-compose.yml"

Usage

Given the following docker-compose.yml file - your case may vary:

version: "3.7"

volumes:
  postgres_data:

services:
  postgres:
    image: postgres:13-alpine
    volumes:
      - postgres_data:/var/lib/postgresql/data
    environment:
      POSTGRES_PASSWORD: 3x4mpl3P455w0rd

And given the following ci-compose.yml file exists:

version: "3.7"

services:
  tests:
    image: my-namespace/my-app:testing
    build:
      context: .
      target: testing
    depends_on:
      - postgres
    command: rspec
    volumes:
      - .:/demo
    environment:
      RAILS_ENV: test
      DATABASE_URL: postgres://postgres:3x4mpl3P455w0rd@postgres:5432/?encoding=unicode

Github Action Usage

      - name: Run Tests
        uses: icalia-actions/run-ci-compose@v0.0.1
        with:
          service-name: tests

Library Usage

yarn add --dev @icalialabs/run-ci-compose

Package Sidebar

Install

npm i @icalialabs/run-ci-compose

Weekly Downloads

2

Version

0.0.2

License

MIT

Unpacked Size

9.02 kB

Total Files

11

Last publish

Collaborators

  • senyix
  • alanmm
  • vovimayhem