Skip to content

Optimise gh actions #1675

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 28 additions & 6 deletions .github/workflows/test-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,31 @@ jobs:
uses: pierotofy/set-swap-space@master
with:
swap-size-gb: 12
- name: Build and Test
run: |
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
docker compose exec -T webapp /webodm/webodm.sh test
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build webapp
uses: docker/build-push-action@v6
with:
context: .
push: false
load: true
tags: opendronemap/webodm_webapp:latest
build-args: TEST_BUILD=ON
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Build db
uses: docker/build-push-action@v6
with:
context: db
push: false
load: true
tags: opendronemap/webodm_db:latest
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Start WebODM service
run: docker compose -f docker-compose.yml -f docker-compose.build.yml up --wait
- name: Sleep for 20 seconds
run: sleep 20s
shell: bash
- name: Run WebODM tests
run: docker compose exec -T webapp /webodm/webodm.sh test