Skip to content

Commit

Permalink
Update docker-compose syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
thisismydesign committed Oct 8, 2024
1 parent 4feaeed commit bff1010
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ jobs:
run: ./scripts/docker_setup_init.sh

- name: Pull images
run: docker-compose pull db
run: docker compose pull db

- name: Docker build
run: docker-compose build web
run: docker compose build web

- name: Docker init
run: docker-compose run --rm web sh -c 'exit 0'
run: docker compose run --rm web sh -c 'exit 0'

build-docker-image:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -77,10 +77,10 @@ jobs:
run: ./scripts/docker_setup_init.sh

- name: Pull images
run: docker-compose pull
run: docker compose pull

- name: Run lint
run: docker-compose run web yarn lint
run: docker compose run web yarn lint

test:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -108,10 +108,10 @@ jobs:
run: ./scripts/docker_setup_init.sh

- name: Pull images
run: docker-compose pull
run: docker compose pull

- name: Run tests
run: docker-compose run web yarn test
run: docker compose run web yarn test

test-request:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -139,10 +139,10 @@ jobs:
run: ./scripts/docker_setup_init.sh

- name: Pull images
run: docker-compose pull
run: docker compose pull

- name: Run request tests
run: docker-compose run web yarn test:request
run: docker compose run web yarn test:request

test-e2e:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -171,10 +171,10 @@ jobs:
run: ./scripts/docker_setup_init.sh

- name: Pull images
run: docker-compose pull
run: docker compose pull

- name: Docker up
run: docker-compose up --detach
run: docker compose up --detach

- name: Cypress run
uses: cypress-io/github-action@v4
Expand All @@ -193,7 +193,7 @@ jobs:
- name: Docker setup logs
if: always()
run: docker-compose logs --timestamps --tail="all" > docker-logs.txt
run: docker compose logs --timestamps --tail="all" > docker-logs.txt

- name: Save log artifacts
uses: actions/upload-artifact@v2
Expand Down

0 comments on commit bff1010

Please sign in to comment.