mirror of
https://github.com/Screenly/Anthias.git
synced 2026-05-08 23:35:10 -04:00
45 lines
1010 B
YAML
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
|