Skip to content

Update Changelog

Update Changelog #276

Workflow file for this run

name: Test
on:
pull_request:
branches: [ "develop", "master" ]
paths-ignore:
- "docs/**"
- "**.md"
# push:
# branches: [ "develop", "master" ]
# paths-ignore:
# - "docs/**"
# - "**.md"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- run: |
touch .env
echo BAG3D_TEST_DATA=${PWD}/tests/test_data >> .env
- name: Build docker images
run: |
make download
make docker_volume_create
- name: Start containers
id: start-containers
continue-on-error: true
run: make docker_up
- name: Restart containers (attempt 1)
if: steps.start-containers.outcome == 'failure'
id: restart-1
continue-on-error: true
run: make docker_up
- name: Restart containers (attempt 2)
if: steps.start-containers.outcome == 'failure' && steps.restart-1.outcome == 'failure'
run: make docker_up
- name: Run unit tests
run: make test
- name: Recreate volumes
run: |
make docker_down
make docker_volume_recreate
- name: Recreate services
id: recreate-services
continue-on-error: true
run: |
make docker_up_nobuild
- name: Restart containers (attempt 1)
if: steps.recreate-services.outcome == 'failure'
id: restart-3
continue-on-error: true
run: make docker_restart_containers
- name: Restart containers (attempt 2)
if: steps.recreate-services.outcome == 'failure' && steps.restart-3.outcome == 'failure'
run: make docker_restart_containers
- name: Run integration tests
run: make test_integration