Skip to content

Bump github.com/gofrs/uuid from 4.3.1+incompatible to 4.4.0+incompatible #217

Bump github.com/gofrs/uuid from 4.3.1+incompatible to 4.4.0+incompatible

Bump github.com/gofrs/uuid from 4.3.1+incompatible to 4.4.0+incompatible #217

name: Docker tests (8.0)
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
env:
GO_VERSION: 1.21.3
jobs:
buildimages:
name: Build images
runs-on: ubuntu-20.04
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v3
- name: Docker images caching
id: cache-images
uses: actions/cache@v3
with:
path: ~/mysync-base-img8.0.tgz
key: mysync-base-img8.0-${{ hashFiles('tests/images/base/*') }}
- name: Build images
if: steps.cache-images.outputs.cache-hit != 'true'
run: make base_img_8.0
- name: Export image
if: steps.cache-images.outputs.cache-hit != 'true'
run: docker save mysync-test-base8.0 | gzip -c > ~/mysync-base-img8.0.tgz
test:
name: test
runs-on: ubuntu-20.04
needs: [ buildimages ]
strategy:
matrix:
command:
- 'VERSION=8.0 GODOG_FEATURE=active_nodes.feature make test'
- 'VERSION=8.0 GODOG_FEATURE=async.feature make test'
- 'VERSION=8.0 GODOG_FEATURE=cascade_replicas.feature make test'
- 'VERSION=8.0 GODOG_FEATURE=CLI.feature make test'
- 'VERSION=8.0 GODOG_FEATURE=crash_recovery.feature make test'
- 'VERSION=8.0 GODOG_FEATURE=events_reenable.feature make test'
- 'VERSION=8.0 GODOG_FEATURE=external_replication.feature make test'
- 'VERSION=8.0 GODOG_FEATURE=failover.feature make test'
- 'VERSION=8.0 GODOG_FEATURE=free_space.feature make test'
- 'VERSION=8.0 GODOG_FEATURE=host_discovery.feature make test'
- 'VERSION=8.0 GODOG_FEATURE=host_management.feature make test'
- 'VERSION=8.0 GODOG_FEATURE=maintenance.feature make test'
- 'VERSION=8.0 GODOG_FEATURE=offline_mode.feature make test'
- 'VERSION=8.0 GODOG_FEATURE=priority.feature make test'
- 'VERSION=8.0 GODOG_FEATURE=readonly_filesystem.feature make test'
- 'VERSION=8.0 GODOG_FEATURE=recovery.feature make test'
- 'VERSION=8.0 GODOG_FEATURE=repair.feature make test'
- 'VERSION=8.0 GODOG_FEATURE=statefile.feature make test'
- 'VERSION=8.0 GODOG_FEATURE=switchover_from.feature make test'
- 'VERSION=8.0 GODOG_FEATURE=switchover_to.feature make test'
- 'VERSION=8.0 GODOG_FEATURE=zk_failure.feature make test'
- 'VERSION=8.0 GODOG_FEATURE=zk_maintenance.feature make test'
fail-fast: false
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v3
with:
go-version: ${{ env.GO_VERSION }}
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v3
- name: Get dependencies
run: |
go get -v -t -d ./...
- name: Load docker images
id: cache-images
uses: actions/cache@v3
with:
path: ~/mysync-base-img8.0.tgz
key: mysync-base-img8.0-${{ hashFiles('tests/images/base/*') }}
- name: Fail if no cached images
if: steps.cache-images.outputs.cache-hit != 'true'
run: |
echo "Failed to fetch cached docker images. Will now exit..."
exit 1
- name: Import image
run: docker load -i ~/mysync-base-img8.0.tgz
- name: Run test
run: ${{ matrix.command }}
- uses: actions/upload-artifact@v3
if: failure()
with:
name: logs
path: tests/logs