From 5969eea4251ae0f4eb5a36741442d19cc10330ee Mon Sep 17 00:00:00 2001 From: alexeh Date: Sat, 6 Apr 2024 15:13:13 +0300 Subject: [PATCH] add CI pipeline --- .github/workflows/cicd.yml | 22 ++++++++++++++++++++++ api/tests/__init__.py | 0 2 files changed, 22 insertions(+) create mode 100644 .github/workflows/cicd.yml create mode 100644 api/tests/__init__.py diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml new file mode 100644 index 00000000..1da44a76 --- /dev/null +++ b/.github/workflows/cicd.yml @@ -0,0 +1,22 @@ +name: CI + +on: + push: + pull_request: + +jobs: + build-and-test: + runs-on: ubuntu-latest + + steps: + - name: Check out the repository + uses: actions/checkout@v2 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v1 + + - name: Build and run tests + run: docker-compose up --build --exit-code-from test + + - name: Clean up + run: docker-compose down \ No newline at end of file diff --git a/api/tests/__init__.py b/api/tests/__init__.py new file mode 100644 index 00000000..e69de29b