Skip to content

Merge branch 'main' of https://github.com/henilp105/registry #64

Merge branch 'main' of https://github.com/henilp105/registry

Merge branch 'main' of https://github.com/henilp105/registry #64

Workflow file for this run

name: Run Tests for Backend
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout page source
uses: actions/checkout@v3
- name: Build the Docker image and run tests
run: docker compose -f "compose.test.yaml" up -d
- name: Print Logs for Container
run: |
export CONTAINER_ID=$(docker ps -aqf "name=ci")
`docker logs -f $CONTAINER_ID` | grep -i "FAILED" && exit 1 || exit 0