Files
Anthias/.github/workflows/docker-test.yaml
2022-10-14 17:56:11 +01:00

45 lines
1010 B
YAML

name: Run Unit Tests
on:
push:
branches:
- master
- production
paths-ignore:
- 'README.md'
- 'webview/**'
- '.github/workflows/build-webview.yaml'
- README.md
pull_request:
branches:
- master
- production
paths-ignore:
- 'README.md'
- 'webview/**'
- '.github/workflows/build-webview.yaml'
workflow_call:
jobs:
run-tests:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build using Docker Compose
run: |
docker-compose -f docker-compose.test.yml build
- name: Start the test container
run: |
docker-compose -f docker-compose.test.yml up -d
- name: Run the tests inside the container
run: |
docker-compose -f docker-compose.test.yml exec -T srly-ose-test bash ./bin/run_tests.sh
- name: Stop the test container
run: |
docker-compose -f docker-compose.test.yml down