feat: backend ci #5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Backend CI | |
on: | |
push: | |
branches: | |
- "**" | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set up Docker BuildKit | |
run: echo "DOCKER_BUILDKIT=1" >> $GITHUB_ENV | |
- name: Build and run tests | |
run: | | |
cd server/workers/persistence | |
docker-compose -f docker/docker-compose-tests.yml up --build --exit-code-from test-runner | |
- name: Clean up | |
if: always() | |
run: docker-compose -f docker/docker-compose-tests.yml down |