Проектная работа 1 #113
This file contains 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: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set up Docker | |
uses: docker/setup-buildx-action@v3 | |
- name: Build docker containers | |
uses: docker/bake-action@v3 | |
with: | |
load: true | |
- name: Backend test | |
run: docker compose run backend-test | |
- name: Frontend test | |
run: docker compose run frontend-test | |
- name: Cleanup | |
if: always() | |
run: docker compose down |