2020-12-22 20:18:39 +00:00
|
|
|
name: Test Docker
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
docker:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-09-04 23:01:51 +00:00
|
|
|
- uses: actions/checkout@v3
|
2020-12-24 20:46:48 +00:00
|
|
|
with:
|
|
|
|
submodules: 'recursive'
|
2020-12-22 20:18:39 +00:00
|
|
|
name: Checkout
|
2023-03-30 14:48:08 +00:00
|
|
|
- name: Set Swap Space
|
|
|
|
uses: pierotofy/set-swap-space@master
|
|
|
|
with:
|
|
|
|
swap-size-gb: 12
|
2020-12-22 20:18:39 +00:00
|
|
|
- name: Build and Test
|
|
|
|
run: |
|
2021-09-26 17:58:20 +00:00
|
|
|
docker-compose -f docker-compose.yml -f docker-compose.build.yml build --build-arg TEST_BUILD=ON
|
|
|
|
docker-compose -f docker-compose.yml -f docker-compose.build.yml up -d
|
|
|
|
sleep 20
|
2020-12-24 14:30:24 +00:00
|
|
|
docker-compose exec -T webapp /webodm/webodm.sh test
|