Update README.md #2
Workflow file for this run
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: Run tests | |
on: | |
push: | |
branches: | |
- "develop" | |
pull_request: | |
branches: | |
- "main" | |
jobs: | |
unit-tests: | |
runs-on: ubuntu-latest | |
env: | |
COMPOSE_FILE: docker-compose.yml | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
with: | |
lfs: true | |
- name: Checkout LFS objects for test cases | |
run: git lfs checkout | |
- name: Log in to the Container registry | |
uses: docker/login-action@v2 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build docker images | |
run: | | |
COMPOSE_DOCKER_CLI_BUILD=1 DOCKER_BUILDKIT=1 docker compose build | |
- name: Run unit and integration tests | |
run: | | |
docker compose run test |